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

fix: Babel transpiler fixes #205

Merged
merged 2 commits into from
Aug 6, 2023
Merged

fix: Babel transpiler fixes #205

merged 2 commits into from
Aug 6, 2023

Conversation

clemyan
Copy link
Contributor

@clemyan clemyan commented Feb 28, 2023

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.

Copy link

@simonihmig simonihmig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left one comment, otherwise this looks good to me! (but I have no authority here 🙃)

This would also fix #215, which I just ran into...

src/transpiler/babel.ts Show resolved Hide resolved
@simonihmig
Copy link

@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! 🙏

Copy link
Owner

@wessberg wessberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work! I've left a few comments.

src/transpiler/babel.ts Show resolved Hide resolved
src/util/path/path-util.ts Show resolved Hide resolved
src/transpiler/babel.ts Outdated Show resolved Hide resolved
@wessberg wessberg merged commit 9006025 into wessberg:master Aug 6, 2023
9 checks passed
@wessberg
Copy link
Owner

wessberg commented Aug 6, 2023

LGTM. Thanks a lot for your contribution.

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

Successfully merging this pull request may close these issues.

Implicitly added babel plugins Yarn PNP @babel/plugin-syntax-dynamic-import warning
3 participants