-
Notifications
You must be signed in to change notification settings - Fork 12k
IE Failure Due to Incomplete Transpilation #9339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
minor update. 1 - tried updating to cli 1.6.5; issue persists
|
Hi! ...
|
The JavaScript files in Closing this as it's not an issue with the CLI. |
@hansl Thanks! That is a workable solution since For my awareness: is transpiling planned at any time for angular-cli? I am wondering how I would handle this with a third party library I can't control as it appears happened to @zaalbarxx |
In case anyone stumbles on to this issue, replacing dependency code is not always feasible. But there is a relatively simple solution. In fact I could submit a PR to easily integrate it into Angular CLI Just transpile the output folder using babel Step 1, package.json Observe dist is there, but javascript from any number of dependencies has been centrally transpiled. |
to add @Vandivier suggestion this is my scripts in
what is does is after finish |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Versions
Angular CLI: 1.6.3
Node: 8.9.4
OS: win32 x64
Angular: 5.1.2
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
@angular/cli: 1.6.3
@angular-devkit/build-optimizer: 0.0.36
@angular-devkit/core: 0.0.22
@angular-devkit/schematics: 0.0.42
@ngtools/json-schema: 1.1.0
@schematics/angular: 0.1.11
@schematics/schematics: 0.0.11
typescript: 2.6.2
webpack: 3.10.0
Repro steps
npm install
this Ella Framework repronpm start
to observe it compiles, works in Chrome, fails in IEnpm run build-dev
to observe output /dist/vendor.bundle.js contains arrow functions and other invalid es5 syntax.Observed behavior
1 - App works in Chrome
2 - App has syntax failure in IE
3 - building to disk results in invalid es5
Desired behavior
1 - Building to disk should reflect proper es5 target as specified in tsconfig.json
2 - IE10 should be fully supported, when building to disk or using Webpack dev server
3 - Ideally / optionally, webpack's config can be exposed so advanced projects can have finely-tuned control over transpilation and configuration to stop gap or workaround issues until/if Angular CLI solutions are officially implemented.
Mention any other details that might be useful (optional)
polyfills.ts was uncommented as expected for IE support in an Angular 5 project.
The text was updated successfully, but these errors were encountered: