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

fix: native inline deduping #360

Merged
merged 7 commits into from
Feb 27, 2023
Merged

fix: native inline deduping #360

merged 7 commits into from
Feb 27, 2023

Conversation

guybedford
Copy link
Owner

This fixes the case where an inline <script type="module">import('./rel.js')</script> would execute as a blob URL unexpectedly since the paths for a dynamic import and an inline module execution are currently overlapping.

Instead, in the case of an inline module execution, we explicitly avoid reexecution.

When dynamically importing an existing module with importShim('./path.js'), we can still risk reexecution but that is because we are using the shim loader instance specifically in this case.

This should avoid mixups like in #355. Some documentation updates are also included.

@guybedford guybedford merged commit 1e930f7 into main Feb 27, 2023
@guybedford guybedford deleted the native-dedupe branch February 27, 2023 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant