pwmckenna / til

Today I Learned
http://pwmckenna.net
9 stars 8 forks source link

nested .babelrc files #1

Open pwmckenna opened 8 years ago

pwmckenna commented 8 years ago

TL;DR Add .babelrc to .npmignore

If you're using babel to compile your code, and you decide to compile your dependencies as well, you're going to have a rough time if that package didn't add .babelrc to .npmignore. This is because babel will try to respect that package's presets/plugins configuration, however the code has likely been long since compiled, and the plugins are probably devDependencies, so babel will freak out.