wessberg / rollup-plugin-ts

A TypeScript Rollup plugin that bundles declarations, respects Browserslists, and enables seamless integration with transpilers such as babel and swc
MIT License
496 stars 33 forks source link

fix: Babel transpiler fixes #205

Closed clemyan closed 1 year ago

clemyan commented 1 year ago

A few fixes for when using Babel as transpiler.

Babel and browserslist: false

Remove all Babel transformation plugins when using browserslist: false as documented

Fixes #189

@babel/plugin-syntax-dynamic-import resolution

Resolving @babel/plugin-syntax-dynamic-import directly is unsound since it is neither a dependency nor a peer dependency. pnpm is supposed to forbid this but don't know why it didn't. Resolve it from @babel/present-env

Fixes #185

@babel/* peers

@babel/* packages didn't exist until Babel 7. Remove extraneous >=6.x from peer version ranges.

simonihmig commented 1 year ago

@wessberg could you please look into this? The issues getting solved by this (three of them!) would become significant blockers for continuing to use this plugin for "us" (Ember.js ecosystem). Thank you! 🙏

wessberg commented 1 year ago

LGTM. Thanks a lot for your contribution.