-
-
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
Option to apply transforms to third-party node_modules #2013
Comments
I would find this extremely useful for the various packages out there that are ES6 but don't work with Parcel's default behavior, like |
Spread will be applied to But in the future |
@DeMoorJasper Awesome! That is great to hear. When will 1.10 be released? Where is this |
It's kinda documented here: #1101 But it never ended up in the docs, feel free to contribute it |
@DeMoorJasper why was this closed? From what I could find, the source field only works for linked modules not third party modules |
This is still a major problem! I wasted more than two hours debugging UW-Macrostrat/web-components#1 because the real issue was totally obscured by the inconsistency between symlinked and third-party modules: I repeatedly developed a working bundler strategy with an |
The title of this issue is |
@DeMoorJasper or @taylorjdawson, can this be reopened? |
@DeMoorJasper This is still not fixed, worth to reopen? |
To all the people asking for this to be re-opened, as the original post mentions, #1655 is open and targets the same problem. So you could just subscribe/follow what is happening in there instead, even if there's not much activity towards implementing this feature there either. |
🙋 feature request
One feature that is seriously lacking is the ability to apply transforms to third-party node_modules. As previously stated:
It seems as if Parcel has the ability but not the option to achieve this. The issue has been discussed before, however, it did not apply to third-party node_modules.
It seems that I am not alone... (& also)
🤔 Expected Behavior
If specified, Parcel will apply transforms on the third party node_modules before bundling.
😯 Current Behavior
Right now Parcel is unable to recognize the object spread operator in third-party node_modules because Parcel does not transform the third party node_module before bundling. Thus, when importing third party node_modules that do not have a
.babelrc
& they use the...(obj)
operator then the build will fail:💁 Possible Solution
CLI:
parcel build index.js --include <3rd party module>
API:
Apply to all external modules:
🔦 Context
I am trying to use Parcel to build for
node
andbrowser
.💻 Examples
If a dev could point me in the right direction I could begin implementation immediately. Thank you.
The text was updated successfully, but these errors were encountered: