You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edit:
I managed to quickly hack a proof of concept.
// just the edited lines in rollup.config.jsimporttypescriptfrom"@rollup/plugin-typescript";// ...constplugins=[typescript({target: "es6",lib: ["es5","es6","ESNext","dom"]}),];
Unfortunately the upgraded TypeScript rollup plugin has a nasty bug which required some editing in tsconfig.json too:
Just nitpicking, but setting the TypeScript compile target to
es5
and then bundling to an ES6 module with rollup does not make sense.It may not hurt bad, except for readability and debugability for all who import
dist/*.esm.js
.The options for the TypeScript rollup plugin permit setting the target dynamically overriding those in
tsconfig.json
.E.g.
plugins:[typescript({target: "es6"})]
Edit:
I managed to quickly hack a proof of concept.
Unfortunately the upgraded TypeScript rollup plugin has a nasty bug which required some editing in
tsconfig.json
too:It was also necessary for me to
npm install tslib
. Being not interested in TypeScript, I have not investigated further.Btw.
The text was updated successfully, but these errors were encountered: