Skip to content

Commit db5dfee

Browse files
committed
feat: launch modules synchronously to avoid flashes
1 parent b8afe76 commit db5dfee

File tree

3 files changed

+217
-111
lines changed

3 files changed

+217
-111
lines changed

apps/nativescript-demo-ng/tools/xplat-postinstall.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ try {
1515
}
1616

1717
// Helpful to trigger ngcc after an install to ensure all has processed properly
18-
const ngccPath = require.resolve('@angular/compiler-cli/ngcc/main-ngcc.js');
19-
const child = childProcess.spawn(ngccPath, ['--tsconfig', 'tsconfig.app.json', '--properties', 'es2015', 'module', 'main', '--first-only'], {
20-
cwd: process.cwd(),
21-
shell: process.platform == 'win32',
22-
});
23-
child.stdout.setEncoding('utf8');
24-
child.stdout.on('data', function (data) {
25-
console.log(data);
26-
});
18+
// const ngccPath = require.resolve('@angular/compiler-cli/ngcc/main-ngcc.js');
19+
// const child = childProcess.spawn(ngccPath, ['--tsconfig', 'tsconfig.app.json', '--properties', 'es2015', 'module', 'main', '--first-only'], {
20+
// cwd: process.cwd(),
21+
// shell: process.platform == 'win32',
22+
// });
23+
// child.stdout.setEncoding('utf8');
24+
// child.stdout.on('data', function (data) {
25+
// console.log(data);
26+
// });

apps/nativescript-demo-ng/tsconfig.app.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4+
"target": "es2017",
45
"baseUrl": ".",
56
"outDir": "../../dist/out-tsc",
67
"paths": {

0 commit comments

Comments
 (0)