From 8d134ba89eb509c0c2db1ad7781562f9210d291c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20B=C3=BCchele?= Date: Mon, 18 Feb 2019 12:46:39 -0800 Subject: [PATCH] disable babel cache Summary: as per title. see explanation in code comment Reviewed By: jknoxville Differential Revision: D14125820 fbshipit-source-id: 9b8e31214a65a184397852544cebd7b69ea0aadb --- static/transforms/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/transforms/index.js b/static/transforms/index.js index ad5b27387..5b46fec8d 100644 --- a/static/transforms/index.js +++ b/static/transforms/index.js @@ -99,6 +99,10 @@ function transform({filename, options, src}) { module.exports = { transform, + // Disable caching of babel transforms all together. We haven't found a good + // way to cache our transforms, as they rely on side effects like env vars or + // the existence of folders in the file system. + getCacheKey: () => Math.random().toString(36), process(src, filename, config, options) { return transform({ src,