-
Notifications
You must be signed in to change notification settings - Fork 96
Conversation
@Rich-Harris I understand the removal of this feature, unfortunately it seemed the only option that worked for our project to remove this suborn dependency from the bundles. tl;dr; - How can I replicate the skip behaviour now that it has been removed? The dependency is The scenario is a little tricky. The frontend and backend of our application both share a common web socket connection library (internally written by us), which is awesome, however the import of autobahn causes issues for the frontend application when bundling. The In the frontend we use the same source files. So I reference the cjs output of the library in my frontend typescript + angular code. However actually importing the autobahn library is not an option in the frontend because it requires This was a nightmare to configure in SystemJS and unfortunately is in rollup as well. In the Full 7.1.0 config:
Then strikes the rxjs 5.2.0 Unexpected token issue... We downgraded the rxjs to 5.1.1 and decided to see if a patch came around. Now 5.3.0 is out and it was still not working for us, so time to upgrade rollup to the latest 8.x.x, also updating all of the dependencies. Seeing that skip is removed and also that we have
This wasn't an issue when skip was present. The config used when this error occurred is identical to the previous, except Happy to provide more information as this seems to be a small edge case, but if you know of a way to mimic the behaviour of skip so as not to include autobahn in the bundle at all (only the reference to the global) then that would be good to know. Thanks for your time, and sorry for the extremely long post, but it is a very specific scenario. The rest of rollup has been great and "just works™" out of the box. |
I'm encountering a similar issue. I'm using the skip option to deal with a pesky package ( I have To the best of my knowledge, this is something to do with how |
I just created a stripped down example of using rollup to package a library that imports typed-immutable and immutable. It currently outputs immutable.js to the bundle despite it being in the external option. Any help/suggestions on how to workaround this would be greatly appreciated. https://github.com/jharris4/typed-immutable-rollup |
@Rich-Harris Looks like this is due to #72 |
Per rollup/rollup-plugin-node-resolve#90. It does appear to.
How do you skip modules without Eg AWS Lambda has built in modules available (e.g.
doesn't work |
external is ignored currently by this plugin. |
The
skip
option is confusing and (as far as I can tell) unnecessary. People are better off using theexternal
option in the main Rollup config. Prompted by Rich-Harris/packd#2, I'm toying with the idea of removing it. Any objections?