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

something is wrong with building when using '?inline' with css #5348

Closed
7 tasks done
lovetingyuan opened this issue Oct 19, 2021 · 0 comments · Fixed by #7746
Closed
7 tasks done

something is wrong with building when using '?inline' with css #5348

lovetingyuan opened this issue Oct 19, 2021 · 0 comments · Fixed by #7746
Labels
feat: css p3-minor-bug An edge case that only affects very specific usage (priority)

Comments

@lovetingyuan
Copy link

Describe the bug

import('./style.css?inline') will create a css code split bundle, but for building, the css bundle will turn to a useless js bundle, that is to say, the css code is gone.

Reproduction

https://github.com/lovetingyuan/bug-vite-dymamic-import-css

System Info

System:
    OS: macOS 10.15.7
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 2.68 GB / 16.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 12.18.4 - /usr/local/bin/node
    Yarn: 1.22.5 - /usr/local/bin/yarn
    npm: 6.14.6 - /usr/local/bin/npm
  Browsers:
    Chrome: 94.0.4606.81
    Edge: 94.0.992.50
    Firefox: 93.0
    Safari: 14.0

Used Package Manager

yarn

Logs

No response

Validations

@sapphi-red sapphi-red added bug p3-minor-bug An edge case that only affects very specific usage (priority) and removed pending triage labels Apr 15, 2022
@github-actions github-actions bot locked and limited conversation to collaborators May 24, 2022
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)
Projects
None yet
3 participants