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

TSC compiles with "target": "es2017", could this be changed to es6 ? #660

Open
capaj opened this issue Jan 16, 2022 · 0 comments
Open

TSC compiles with "target": "es2017", could this be changed to es6 ? #660

capaj opened this issue Jan 16, 2022 · 0 comments

Comments

@capaj
Copy link

capaj commented Jan 16, 2022

Is your feature request related to a problem? Please describe.
yes. When this is used in webpack without tranpilation it breaks.

Describe the solution you'd like
entry point should be es6 at most

Describe alternatives you've considered
transpiling in my own build pipeline

Additional context
best practice is to have two bundles-
main: CJS es5
module: ESM es6

By having the main as ESM es2017 it forces any user of this package to enable tranpiling of this module in their webpack config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant