Skip to content

Commit 88d37a1

Browse files
committed
perf(): speed up www dev build
1 parent 08bf9e3 commit 88d37a1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/compiler/config/test/validate-output-www.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ describe('validateOutputTargetWww', () => {
5151
'esmDir': path.join(rootDir, 'www', 'docs', 'build'),
5252
'isBrowserBuild': true,
5353
'polyfills': true,
54-
'systemDir': path.join(rootDir, 'www', 'docs', 'build'),
55-
'systemLoaderFile': path.join(rootDir, '/www/docs/build/undefined.js'),
54+
'systemDir': undefined,
55+
'systemLoaderFile': undefined,
5656
'type': 'dist-lazy'
5757
}, {
5858
'copyAssets': 'dist',

src/compiler/config/validate-outputs-www.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ function validateOutputTarget(config: d.Config, diagnostics: d.Diagnostic[], out
7373
config.outputTargets.push({
7474
type: DIST_LAZY,
7575
esmDir: buildDir,
76-
systemDir: buildDir,
76+
systemDir: config.buildEs5 ? buildDir : undefined,
77+
systemLoaderFile: config.buildEs5 ? config.sys.path.join(buildDir, `${config.fsNamespace}.js`) : undefined,
7778
polyfills: outputTarget.polyfills,
78-
systemLoaderFile: config.sys.path.join(buildDir, `${config.fsNamespace}.js`),
7979
isBrowserBuild: true,
8080
});
8181

0 commit comments

Comments
 (0)