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
This isn't standard compliant and more importantly, redundant.
Solution:
Use rollup-based setup to bundle this. We can use https://github.com/egoist/tsup, which uses rollup for bundling(everything in one single JS file rather than multiple), generates d.ts, and sourcemaps all in one go with minimal config. I use it for all my npm packages and can't recommend it enough.
The text was updated successfully, but these errors were encountered:
TS SDK is currently generated by
tsc
, which doesn't generate standard module syntax. This is the index.js:This isn't standard compliant and more importantly, redundant.
Solution:
Use rollup-based setup to bundle this. We can use https://github.com/egoist/tsup, which uses rollup for bundling(everything in one single JS file rather than multiple), generates d.ts, and sourcemaps all in one go with minimal config. I use it for all my npm packages and can't recommend it enough.
The text was updated successfully, but these errors were encountered: