Skip to content
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

Resolve imported module IDs without Rollup. #6694

Merged
merged 4 commits into from
Jul 24, 2020

Conversation

benjamn
Copy link
Member

@benjamn benjamn commented Jul 24, 2020

A more bespoke approach to #6657, fixing #6687 by not relying on Rollup.

@benjamn benjamn force-pushed the resolve-module-ids-without-rollup branch from a5284fe to 4638b51 Compare July 24, 2020 21:28
Copy link
Member

@hwillson hwillson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great @benjamn - thanks!

We don't currently have any external packages that we want to bundle into
@apollo/client, so we can get away with considering any non-relative
import to be external. The results of this test exactly match the current
contents of externalPackages, so it should be safe to remove that Set.

This should save us from making mistakes like the one I fixed in #6624,
and if we ever do want to bundle something from node_modules into the
@apollo/client bundle again, we can easily carve out an exception.
@benjamn benjamn force-pushed the resolve-module-ids-without-rollup branch from e8410ae to f76db47 Compare July 24, 2020 23:30
@benjamn benjamn merged commit e5bb496 into master Jul 24, 2020
@benjamn benjamn deleted the resolve-module-ids-without-rollup branch July 24, 2020 23:32
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants