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

import.meta.glob for css, injected css to production js bundle #9537

Closed
7 tasks done
ermolaev opened this issue Aug 4, 2022 · 0 comments · Fixed by #9547
Closed
7 tasks done

import.meta.glob for css, injected css to production js bundle #9537

ermolaev opened this issue Aug 4, 2022 · 0 comments · Fixed by #9547
Assignees
Labels
p2-nice-to-have Not breaking anything but nice to have (priority)

Comments

@ermolaev
Copy link

ermolaev commented Aug 4, 2022

Describe the bug

import.meta.glob("./*.css", { eager: true })

image

Reproduction

https://stackblitz.com/edit/vitejs-vite-eurkow?file=dist%2Fassets%2Findex.860890ed.js&terminal=dev

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (4) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 16.14.2 - /usr/local/bin/node
    Yarn: 1.22.10 - /bin/yarn
    npm: 7.17.0 - /bin/npm
  npmPackages:
    vite: ^3.0.4 => 3.0.4

Used Package Manager

npm

Logs

No response

Validations

@ermolaev ermolaev changed the title import.meta.glob for css, injected it to production js bundle import.meta.glob for css, injected css to production js bundle Aug 4, 2022
@sapphi-red sapphi-red self-assigned this Aug 4, 2022
@sapphi-red sapphi-red added the p2-nice-to-have Not breaking anything but nice to have (priority) label Aug 4, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Aug 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
p2-nice-to-have Not breaking anything but nice to have (priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants