From c7cf82fa544edb37123109ae0f68fa13a55200d9 Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Sat, 3 Jul 2021 13:19:00 -0700 Subject: [PATCH] disable v8cache for esm --- src/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.js b/src/index.js index 6fba5be8c..f75b7e4f1 100644 --- a/src/index.js +++ b/src/index.js @@ -56,6 +56,9 @@ function ncc ( production = true, } = {} ) { + if (esm) + v8cache = false; + const cjsDeps = () => ({ mainFields: ["main"], extensions: SUPPORTED_EXTENSIONS,