From 94c67f9ae65cfa8510f2243b09ccf7a8115e52e7 Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Tue, 27 Apr 2021 15:10:43 +0200 Subject: [PATCH 1/2] adjust caching options --- src/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/index.js b/src/index.js index 5ea3f6bb..7ec30ec9 100644 --- a/src/index.js +++ b/src/index.js @@ -192,6 +192,10 @@ function ncc ( name: `ncc_${hashOf(entry)}`, version: nccVersion }, + snapshot: { + managedPaths: [], + modules: { hash: true } + }, amd: false, optimization: { nodeEnv: false, From a23b316df389aa5c0c43318edaecc61eecd1b04c Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Tue, 27 Apr 2021 15:20:59 +0200 Subject: [PATCH 2/2] fixup module option --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 7ec30ec9..0922a3db 100644 --- a/src/index.js +++ b/src/index.js @@ -194,7 +194,7 @@ function ncc ( }, snapshot: { managedPaths: [], - modules: { hash: true } + module: { hash: true } }, amd: false, optimization: {