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
Add .babelrc to .npmignore #16
Conversation
You might want to skip code from |
After reading @jskorepa's issues on react-dropzone this sounds like it would fix the issue I'm having as well. Where do you stand on this @okonet? I'm not familiar with what's considered best practice in the community for publishing build configuration in the distributed package. I agree this is probably the result of an overly optimistic assumption in parcel, and should maybe be changed there. Still, unless there's a good reason to ship the .babelrc file in the npm package, would you consider leaving it out? |
I never used parcel before but it looks like something they should fix. I’m okay with merging this, though. |
Please sync the branch and I’ll merge it |
Rebased to current master. For anyone looking for solution which does not require patching lot of npm packages I ended up setting following script as "prepare" in package.json
|
Sorry for bike shedding, but why are you using parcell? Wasn't it zero-congif in the first place? So now you need to patch the whole internet to get a tool working? 🤔 |
This is actually a very good thing to do but for another reason: you shouldn't publish unnecessary files (any tooling configs for example) to npm. And webpack has the same issue, though it's easy to fix. |
@sapegin I'm not sure about this in case you want to build from source (which is the case with webpack, afaik). |
For anyone interested, the main discussion thread for this issue in parcel is here: parcel-bundler/parcel#13. I agree that parcel should not be doing this. Thanks @okonet for accommodating this change regardless! |
Same as react-dropzone/react-dropzone#558