Skip to content
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

Build should support es6 target in tsconfig #7582

Closed
mmc41 opened this issue Sep 2, 2017 · 3 comments
Closed

Build should support es6 target in tsconfig #7582

mmc41 opened this issue Sep 2, 2017 · 3 comments

Comments

@mmc41
Copy link

mmc41 commented Sep 2, 2017

  • [x ] bug report -> please search issues before submitting
  • [x ] feature request

As suggested by the article "You might not need to transpile your JavaScript" if one is targeting modern browsers than es6 should work as a target.

Versions.

Angular 4.3.6
Angular cli 1.3.2

Change target in tsconfig.json to "es6"

ng build --bh /ui/ --prod --aot

_Date: 2017-09-02T18:56:38.448Z                                                             
Hash: 8032803bfa9cd5eeccc0
Time: 31830ms
chunk {0} polyfills.427414a5bc7cff210ba6.bundle.js (polyfills) 98.1 kB {4} [initial] [rendered]
chunk {1} main.65fe0ebc36062fa8f7ee.bundle.js (main) 945 kB {3} [initial] [rendered]
chunk {2} styles.d41d8cd98f00b204e980.bundle.css (styles) 0 bytes {4} [initial] [rendered]
chunk {3} vendor.cce22225937a659c544a.bundle.js (vendor) 959 kB [initial] [rendered]
chunk {4} inline.1835379b8caad20d2658.bundle.js (inline) 1.45 kB [entry] [rendered]

ERROR in main.65fe0ebc36062fa8f7ee.bundle.js from UglifyJs
Unexpected token: punc ()) [main.65fe0ebc36062fa8f7ee.bundle.js:94,12]_

Desired functionality.

ES 6 target should build (and work in a modern browser)

@devoto13
Copy link
Contributor

devoto13 commented Sep 2, 2017

Support for ES6 is being tracked in #2907. Please subscribe to that issue for further updates.

@filipesilva
Copy link
Contributor

Closing as answered by @devoto13, thanks 👍

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants