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

Missing Babel plugins are silently ignored #11854

Open
edemaine opened this issue Jan 14, 2022 · 0 comments
Open

Missing Babel plugins are silently ignored #11854

edemaine opened this issue Jan 14, 2022 · 0 comments

Comments

@edemaine
Copy link
Contributor

edemaine commented Jan 14, 2022

babel-compiler has some fancy code for transforming plugin and preset strings into actual modules. It works when the modules exist. But when accidentally using an invalid string (in my case, I forgot to run npm install), it just silently succeeds, whether it's in .babelrc or package.json.

By contrast, running npx babel client/main.js (for example) produces a MODULE_NOT_FOUND error as expected. Oddly, requireWithPath seems like it should be turning this into a warning, but it doesn't.

Demo repo: https://github.com/edemaine/bug-meteor-babelconfig (no error messages despite bad package.json and .babelrc)
To test npx babel, you should delete either .babelrc or the babel section of package.json so that Babel doesn't complain.

I'm running Meteor 2.5.3 on Windows 10.

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

No branches or pull requests

1 participant