From 1e166a019b3f84d838f12795cf3c7d9bf3be3d75 Mon Sep 17 00:00:00 2001 From: Daniel Woznicki Date: Thu, 14 May 2020 11:47:27 -0700 Subject: [PATCH] Fixes bug where running loader with multiple entries and template with {{prerender}} injection injection point fails with: Error: Conflict: Multiple chunks emit assets to the same filename ssr-bundle.js --- src/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index f938ba7..a78358f 100644 --- a/src/index.js +++ b/src/index.js @@ -71,7 +71,9 @@ export default function PrerenderLoader (content) { const matches = content.match(PRERENDER_REG); if (matches) { inject = true; - options.entry = matches[1]; + if (!options.entry) { + options.entry = matches[1]; + } } options.templateContent = content; }