From 9429b17fbf098fc60b035f4ab264386786aa7f02 Mon Sep 17 00:00:00 2001 From: David Zbarsky Date: Mon, 23 Sep 2019 23:54:02 -0500 Subject: [PATCH] Declare dependency on entry --- src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.js b/src/index.js index 9a602e8..6ae3fe3 100644 --- a/src/index.js +++ b/src/index.js @@ -93,6 +93,7 @@ async function prerender (parentCompilation, request, options, inject, loader) { const context = parentCompiler.options.context || process.cwd(); const customEntry = options.entry && ([].concat(options.entry).pop() || '').trim(); const entry = customEntry ? ('./' + customEntry) : convertPathToRelative(context, parentCompiler.options.entry, './'); + loader.addDependency(entry); const outputOptions = { // fix: some plugins ignore/bypass outputfilesystem, so use a temp directory and ignore any writes.