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
fix: bump @rollup/plugin-node-resolve to v13 #1633
Conversation
🦋 Changeset detectedLatest commit: 617b1f3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
does the failing test mean users won't be able to use both plugins? 🤔 |
Here is one issue which could potentially affect other plugins: rollup/plugins#973 See also related code which returns |
Trying to figure out what's going on here, I noticed the test fails because it gets caught in an infinite loop where
I'm debugging with
The loop looks like this:
Looking at that, do we need to mark the module as external in between step 3 and 4? |
@tjenkinson would you mind taking a look if you have a moment? I suspect our loop is caused by the changes to rollup/plugin-node-resolve's use of rollup api ( |
So I haven’t looked in a lot of detail and don’t have much context on what this project is but from the docs it looks like it doesn’t use rollup but is mimicking the api? If that’s the case you might need to implement the same changes that were made in rollup in rollup/rollup#4000 that change the behaviour of With the old behaviour there would be an infinite loop in rollup so sounds like it could be that. |
Thanks @tjenkinson that was very helpful. @LarsDenBakker PTAL, thanks. |
ebd24b2
to
617b1f3
Compare
@bennypowers your change will always skip over all plugins if skipSelf is true. We need to mimick what's being done inside rollup, where when one of the other plugins calls this.resolve again from its resolveId hook with the exact same source and importer, the initial plugin will be skipped as well. Trying to look for the best way to do this, it might require some changes in core. |
Ended up here due to not being able to import side-effects for selector registrations in the customElements registry... thank you all for the work on this one, I will be eagerly watching this in hopes that it lands soon. |
Have you had time to see this? Thanks in advance! |
I don't feel confident to dig into this 😞 And Lars is probably still away. Any help would be highly appreciated. |
Any news? Thanks! |
I was following this PR and really thank you for the work! I assume there was no advances here, was it? 🤞 |
quite the investigation happened here... seems to be related to a change in the commonjs plugin 🤔 this "mixed" approach got superseded by #1942 which only updates the plugin-node-resolve updating the dev dependencies plugin-commonjs and/or rollup may be done in a separate step? Is anyone up for it? (beware there may be dragons 😅 as with everything related to esm <-> cjs 🙈) |
What I did
@rollup/plugin-node-resolve
to v13 (again)Fixes #1376
Fixes #1443
Fixes #1575
Fixes #1568