-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Untransformed files for build with .babelrc #2304
Comments
well, that didn't help at all, I had to manually fork the offending repo and convert to Typescript then compile down to ES5. since parcel is "zero conf", I would expect it to work as-is, even though I did set to do all the transforms, everywhere, in the babelrc |
Setting the target in the module's package.json would have been easier. Feel free to come up with ideas on how to implement it without making parcel slower for users who are happy with the current behaviour and without introducing new cli flags. |
since parcel makes a bridge of many existing solutions (like babel, postcss, etc), it would just make sense that setting something at the project root to cascade everywhere. as showin in #2262 (comment) there are some hardcoded stuff in here that can be pretty confusing if you're trying to enforce something with config files |
@pocesar that was to prevent breaking changes with Parcel 1, it could have probably been overwritable though |
🐛 bug report
Currently, not all files are going through babel transforms, even though it's explicitly set in
.babelrc
file.🎛 Configuration (.babelrc, package.json, cli command)
package.json important parts:
.babelrc
🤔 Expected Behavior
properly transformed
node_module
s that has aconst
andclass
keywords😯 Current Behavior
Generated build has un-transformed node_modules
N.B.:
const
andclass
keywords from the moip-sdk-js💁 Possible Solution
🔦 Context
Build one
app.js
from many legacy code files using:💻 Code Sample
🌍 Your Environment
The text was updated successfully, but these errors were encountered: