-
-
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
Bug-ish: compiling of linked modules #948
Comments
Yeah, this was a change in behavior in v1.6.0. Unfortunately, too many packages on npm publish I have this exact problem as well, so I'm hoping to solve it by somehow telling parcel that a module is actually source code rather than a precompiled package. In #13 we are discussing adding a |
Awesome thanks! |
Hmm yea extra tricky with this scenario since reaching into the pkg modules with |
babel/babel#7358 should help with this, basically will ignore .babelrc from node_modules by default and use the root one. |
Ended up reverting to pre-1.6 for now, but I thinkkkk it should be pretty safe to apply the old behaviour to symlink'd packages, tough call though. |
Yo @devongovett—any progress on this one? 🤔 I'm facing the exact same problem, we're using Yarn workspaces to build and share some of our UI infrastructure pieces and we can't import any package that needs to be compiled in the root workspace level :( |
Made #1101 which adds support for a |
I'm having the same issue in #1571 but with |
Any updates on this? I'm facing the same problem targeting electron and using yarn workspaces |
Im facing another issue, using yarn/npm link, parcel tries to resolve the dependency by executing yarn install and it fails to download the package, executes yarn install again, fails again... resulting in an infinite loop |
🐛 bug report
I think this is a bug, you used to be able to
yarn link
/npm link
another module which had babel / JSX etc and it would magically just work (which is amazing haha), however with bundler 1.6.2 I now get:🎛 Configuration (.babelrc, package.json, cli command)
My config for the main project and the linked one are both:
🤔 Expected Behavior
Linked would get compiled as configured as well.
😯 Current Behavior
Above :D
💁 Possible Solution
Not sure if the old behaviour was intended or not, or if it's recommended to pre-build the linked package — if so that's not a huge problem!
🔦 Context
Local development.
🌍 Your Environment
Donated :D thanks for the fantastic project
The text was updated successfully, but these errors were encountered: