From 88d37a13d1f6cb4eda12ed59850d3e8f9114605b Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Tue, 23 Jul 2019 18:44:41 +0200 Subject: [PATCH] perf(): speed up www dev build --- src/compiler/config/test/validate-output-www.spec.ts | 4 ++-- src/compiler/config/validate-outputs-www.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/compiler/config/test/validate-output-www.spec.ts b/src/compiler/config/test/validate-output-www.spec.ts index af309ed9ce4..f36b54c38ef 100644 --- a/src/compiler/config/test/validate-output-www.spec.ts +++ b/src/compiler/config/test/validate-output-www.spec.ts @@ -51,8 +51,8 @@ describe('validateOutputTargetWww', () => { 'esmDir': path.join(rootDir, 'www', 'docs', 'build'), 'isBrowserBuild': true, 'polyfills': true, - 'systemDir': path.join(rootDir, 'www', 'docs', 'build'), - 'systemLoaderFile': path.join(rootDir, '/www/docs/build/undefined.js'), + 'systemDir': undefined, + 'systemLoaderFile': undefined, 'type': 'dist-lazy' }, { 'copyAssets': 'dist', diff --git a/src/compiler/config/validate-outputs-www.ts b/src/compiler/config/validate-outputs-www.ts index b02a50de609..fe729c12ab9 100644 --- a/src/compiler/config/validate-outputs-www.ts +++ b/src/compiler/config/validate-outputs-www.ts @@ -73,9 +73,9 @@ function validateOutputTarget(config: d.Config, diagnostics: d.Diagnostic[], out config.outputTargets.push({ type: DIST_LAZY, esmDir: buildDir, - systemDir: buildDir, + systemDir: config.buildEs5 ? buildDir : undefined, + systemLoaderFile: config.buildEs5 ? config.sys.path.join(buildDir, `${config.fsNamespace}.js`) : undefined, polyfills: outputTarget.polyfills, - systemLoaderFile: config.sys.path.join(buildDir, `${config.fsNamespace}.js`), isBrowserBuild: true, });