diff --git a/lib/build/loader.js b/lib/build/loader.js index 30b23322a..71e63d750 100644 --- a/lib/build/loader.js +++ b/lib/build/loader.js @@ -111,7 +111,7 @@ function shouldIncludeBundleMetadata(bundles, loaderOptions) { } function systemJSConfigForBundle(bundle, bundler, location, includeBundles) { - const buildOptions = new Configuration(bundle.config.options, bundler.buildOptions); + const buildOptions = new Configuration(bundle.config.options, bundler.buildOptions.getAllOptions()); const mapTarget = location + '/' + bundle.moduleId + (buildOptions.isApplicable('rev') && bundle.hash ? '-' + bundle.hash : '') + path.extname(bundle.config.name); const moduleId = bundle.moduleId; const bundledModuleIds = bundle.getBundledModuleIds();