Conversation
…tions to `this.parse`
ef728b9 to
176f6d5
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
Most of the fails are type incompatibility errors. This analog fail might be a bug in rollup. |
bluwy
left a comment
There was a problem hiding this comment.
Changes look great so far. Nice to see there's not too many change needed on our end.
|
Back to green 🫡 |
|
All Rollup plugins (except sucrase, there was a weird hiccup in the pipeline) have been updated (thought the changelog does not reflect it...). |
|
No problem 😃 Hmm, I see. Yeah, it seems to be working like that 🧐 |
|
/ecosystem-ci run |
|
📝 Ran ecosystem CI: Open
|
bluwy
left a comment
There was a problem hiding this comment.
LGTM. If we want to stay on track with the release schedule, I think we should merge this as soon as possible.
To make the ecosystem-ci slightly greener so we don't catch type issues, maybe we can override rollup to v4 too.
|
/ecosystem-ci run |
|
📝 Ran ecosystem CI: Open
|
|
Isn't parse exposed from |
|
Yeah we've updated to use that now. It was discussed at #14508 (comment) |
Description
This PR upgrades Rollup to v4.
Remaining TODOs:
this.addWatchFileis needed in other placespackage.jsonrefs rollup/rollup#5140
close #13342
Additional context
this.parseRollup now uses SWC with a custom tree converter (converts SWC AST to ESTree AST) to parse JS.
This PR gets
this.parsefrom rollup by creating a dummy bundle and uses that in dev. I'm not sure if this is legal 😅This way we can be 100% compatible with rollup.
The other way is to use acorn in dev. But it seems even if we added both
acorn-import-attributesandacorn-import-assertions, acorn cannot parseasserts. So we have to create our own acorn plugin or remove support for eitherassertsif we take this way.skipSelf: trueis now defaultMaybe #13852 should be given more priority now.
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123).