diff --git a/lib/rollup.js b/lib/rollup.js index ca0cf46..5ac1dc8 100644 --- a/lib/rollup.js +++ b/lib/rollup.js @@ -85,7 +85,7 @@ exports.rollupTree = function(loader, tree, entryPoints, traceOpts, compileOpts) entryPoints.forEach(function(entryPoint) { if (isESM(entryPoint) && optimizationPoints.indexOf(entryPoint) == -1) optimizationPoints.push(entryPoint); - }) + }); /* * 2. Determine unoptimizable modules, splitting them out into their own optimization points @@ -277,7 +277,7 @@ exports.rollupTree = function(loader, tree, entryPoints, traceOpts, compileOpts) }; // replace the entry point module itself with the inlined subgraph module - var curInlined = inlineMap[entryPoint]; + var curInlined = inlineMap[entryPoint] || []; // merge all external deps across all inlined modules // when a duplicate dependency is hit, throw as we don't