-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix(html): move importmap before module scripts #9392
Conversation
Nice fix. I'm leaning towards the alternative proposal though. IIUC this PR could end up reordering styles and scrpts, no? |
This PR currently reorders |
I'm leaning towards the alternative one, too. I think it is more easy to understand the behavior, especially when an
I think a warning will make it less surprising. |
Updated to use a Vite plugin with Also avoiding |
I was thinking of when the input of |
Yeah I think that could be something that we can warn by default. Would have to warn before any |
Co-authored-by: 翠 / green <green@sapphi.red>
Co-authored-by: 翠 / green <green@sapphi.red>
Description
fix #9334
Arrange
script type="importmap"
as first intransformIndexHtml
.Additional context
Needed this for dev external tests 🙂
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).