Skip to content

Commit

Permalink
perf(): speed up www dev build
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Jul 23, 2019
1 parent 08bf9e3 commit 88d37a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/compiler/config/test/validate-output-www.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions src/compiler/config/validate-outputs-www.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});

Expand Down

0 comments on commit 88d37a1

Please sign in to comment.