From b77def1c4a4b4a8b0d8372a4afdfffe39ea97ede Mon Sep 17 00:00:00 2001 From: Jesus Rodriguez Date: Sun, 19 Mar 2017 20:35:38 +0100 Subject: [PATCH] tool(zipper): add support for the moduleId loader --- tools/example-zipper/exampleZipper.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/example-zipper/exampleZipper.js b/tools/example-zipper/exampleZipper.js index 4299ab8839..d46eba45a2 100644 --- a/tools/example-zipper/exampleZipper.js +++ b/tools/example-zipper/exampleZipper.js @@ -61,6 +61,7 @@ class ExampleZipper { const exampleDirName = path.dirname(configFileName); const examplesPackageJson = 'public/docs/_examples/package.json'; const examplesSystemjsConfig = 'public/docs/_examples/_boilerplate/src/systemjs.config.js'; + const examplesSystemjsLoaderConfig = 'public/docs/_examples/_boilerplate/src/systemjs-angular-loader.js'; const exampleTsconfig = 'public/docs/_examples/_boilerplate/src/tsconfig.json'; let exampleZipName = jsonFileName.replace(/(plnkr|zipper).json/, relativeDirName); const outputFileName = path.join(outputDirName, relativeDirName, exampleZipName + '.zip'); @@ -136,6 +137,7 @@ class ExampleZipper { // also a systemjs config if (!json.removeSystemJsConfig) { zip.append(fs.readFileSync(examplesSystemjsConfig, 'utf8'), { name: 'src/systemjs.config.js' }); + zip.append(fs.readFileSync(examplesSystemjsLoaderConfig, 'utf8'), { name: 'src/systemjs-angular-loader.js' }); } // a modified tsconfig let tsconfig = fs.readFileSync(exampleTsconfig, 'utf8');