-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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(ssr-manifest): check name before saving to ssrManifest #9595
Conversation
✅ Deploy Preview for vite-docs-v2 ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
I think it would be nice to have a test for this. From what I understand I think dynamic imports should already be skipped at
|
@bluwy Thank you for comments. I'll try where you contribute and add it to the test file. |
@bluwy I edited as per your suggestion and checked back at my project and the result was correct. I created a test file but when I ran it, the package was missing so i don't push code. Please review for me. |
I was mentioning that your example that caused the issue was: const app = createSSRApp(App)
app.component('Test', defineAsyncComponent(() => import(/* @vite-ignore */ `https://cdn.com/${variable}`))) Presumably the dynamic import is causing issues, but in the code we already skipped dynamic imports, so I was hoping you can clarify how this happens, and maybe in a way of writing a test. Feel free to push the test code so we can review it too. |
@bluwy Sorry, this is my demo https://stackblitz.com/edit/vitejs-vite-y363sz?file=vue-project%2Fsrc%2Fmain.js,vue-project%2Fpackage.json&terminal=dev. The steps are as follows
|
Ugh just realized my brainfart 😅 So apparently we're filtering and only want dynamic imports only. My mind sort of flipped there. This change makes sense then, and I think you uncovered a bigger problem too that why this only happens for I think this PR is good without a test for now, thanks for the explanation! |
@bluwy It's great that you understand my problem. Thank you for support! |
@bluwy @patak-dev Do I need to create MR for v3? |
Sure feel free 👍 |
Description
fix: #9292.
Additional context
I experience the same situation when using async component but import from variable cdn and setup build minify = false. Please update for both v3
Example:
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).