diff --git a/packages/server/src/ChunkExtractor.js b/packages/server/src/ChunkExtractor.js index 6f54f8e8..6b3bc0f6 100644 --- a/packages/server/src/ChunkExtractor.js +++ b/packages/server/src/ChunkExtractor.js @@ -363,7 +363,7 @@ class ChunkExtractor { smartRequire(path.join(this.outputPath, name.split('?')[0])) }) - return smartRequire(mainAsset.path) + return smartRequire(mainAsset.path.split('?')[0]) } // Main assets