Skip to content

fix(preload): skip preload for non-static urls#16556

Merged
patak-cat merged 1 commit intomainfrom
skip-preload-dynamic
Apr 30, 2024
Merged

fix(preload): skip preload for non-static urls#16556
patak-cat merged 1 commit intomainfrom
skip-preload-dynamic

Conversation

@bluwy
Copy link
Copy Markdown
Member

@bluwy bluwy commented Apr 29, 2024

Description

fix #16241

If the source code is import(foobar), which foobar can't be analyzed, it's very likely that we can't find any preload dependencies for it too because it's not part of the dependency graph.

This PR skips adding the __vitePreload() for that dynamic import in that case.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

p2-edge-case Bug, but has workaround or limited in scope (priority)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Disable dynamic import detection for one line or for whole project

4 participants