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

[Bug: plugin-legacy] legacy js inserts styles in the wrong order #13265

Closed
7 tasks done
lsdsjy opened this issue May 19, 2023 · 1 comment · Fixed by #13266
Closed
7 tasks done

[Bug: plugin-legacy] legacy js inserts styles in the wrong order #13265

lsdsjy opened this issue May 19, 2023 · 1 comment · Fixed by #13266
Labels
feat: css p3-minor-bug An edge case that only affects very specific usage (priority) plugin: legacy

Comments

@lsdsjy
Copy link
Contributor

lsdsjy commented May 19, 2023

Describe the bug

The styling behavior of the legacy bundle differs from that of the modern bundle. Can be reproduced when common chunks are generated.

I've provided a stackblitz environment with pre-built dist, and modified the index.html to ensure the legacy bundle executed. The buttons should be green and blue respectively(as on dev and modern bundle), but they are all black on legacy bundle.

Reproduction

https://stackblitz.com/edit/vite-ubkstt?file=dist%2Findex.html,dist%2Fassets%2FGreenButton-legacy-a72b2200.js

Steps to reproduce

No response

System Info

npmPackages:
    @vitejs/plugin-legacy: ^4.0.3 => 4.0.3
    vite: ^4.3.8 => 4.3.8

Used Package Manager

yarn

Logs

No response

Validations

@stackblitz
Copy link

stackblitz bot commented May 19, 2023

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@sapphi-red sapphi-red added plugin: legacy p3-minor-bug An edge case that only affects very specific usage (priority) feat: css labels May 21, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jun 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feat: css p3-minor-bug An edge case that only affects very specific usage (priority) plugin: legacy
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants