Skip to content

Can we remove babel from peerDependencies? #565

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

Open
jdelStrother opened this issue Apr 15, 2025 · 0 comments
Open

Can we remove babel from peerDependencies? #565

jdelStrother opened this issue Apr 15, 2025 · 0 comments

Comments

@jdelStrother
Copy link
Contributor

jdelStrother commented Apr 15, 2025

Desired behavior:

You can set webpack_loader to swc or esbuild and remove babel dependencies from your package.json

Actual behavior:

It actually works ok, but yarn complains about missing dependencies:

➤ YN0002: │ web@workspace:. doesn't provide @babel/core (pb8358), requested by shakapacker.
➤ YN0002: │ web@workspace:. doesn't provide @babel/plugin-transform-runtime (p70d5d), requested by shakapacker.
➤ YN0002: │ web@workspace:. doesn't provide @babel/preset-env (p85748), requested by shakapacker.
➤ YN0002: │ web@workspace:. doesn't provide @babel/runtime (p5bf1d), requested by shakapacker.
➤ YN0002: │ web@workspace:. doesn't provide babel-loader (p6c7e3), requested by shakapacker.

Setup environment:

  • Ruby version: 3.4
  • Rails version: 8.0
  • Shakapacker version: 8.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant