Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use esnext target with TypeScript and scope hoist (#1781)
Should bring a noticeable size improvement on big TypeScript apps
- Loading branch information
3e9b086
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about async/await - does parcel unroll those for ES5 browsers?
3e9b086
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is about the
module
options (not to confuse withtarget
), anything else thanimport
/export
is unchanged.Use
target: esnext
and this workaround to build pure ES6 apps.3e9b086
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it doesn't work just try: