otplib icon indicating copy to clipboard operation
otplib copied to clipboard

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

Open capaj opened this issue 3 years ago • 0 comments

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

capaj avatar Jan 16 '22 18:01 capaj