-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Description
All projects generated by angular-cli
have a dependency on ts-helpers
, but ts-helpers
is not imported into the projects (or test harness) and the compiler outputs helpers in every file that needs them (which is every file that uses decorators or extends
). Using ts-helpers
in generated projects by default will have the benefit of reducing build sizes for the average user.
Generated projects should have the following modifications:
- Add
import 'ts-helpers';
at the top ofsrc/main.ts
andsrc/test.ts
afterimport './polyfills.ts';
- Add
"noEmitHelpers": true
to thecompilerOptions
object insrc/tsconfig.json
Versions.
angular-cli: 1.0.0-beta.21
node: 6.9.1
os: darwin x64
Repro steps.
ng new test-project
grep
forimport 'ts-helpers';
and find 0 instances- Inspect
src/tsconfig.js
and find no"noEmitHelpers": true
nadavsinai
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgent