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

css modules link with template render is missing in production mode when project depends on a package that is not transpilered in node_modules #8182

Closed
7 tasks done
Itarn opened this issue May 15, 2022 · 1 comment

Comments

@Itarn
Copy link

Itarn commented May 15, 2022

Describe the bug

when I run vite build, in dist files, css modules link with template render is missing. The project use vue component package that is not been transpilered (In the following examples, the package is unbuildvue3module).

While it is work in dev.

This is CSS files. _red_xad9b_2 is from package. But the vaiables has not been found in JS files.

20220515114313

Thx very much

Reproduction

https://stackblitz.com/edit/vitejs-vite-39fnes

System Info

"unbuildvue3module": "^1.0.0"
"vue": "^3.2.33"
"@vitejs/plugin-vue": "^2.3.2"
"vite": "^2.9.8"

Used Package Manager

pnpm or npm

Logs

No response

Validations

@sapphi-red
Copy link
Member

It reproduces with 3.0.0-alpha.1 but it does not with 3.0.0-alpha.2.
I assume #8278 fixed this.
Closing as it is fixed.

@github-actions github-actions bot locked and limited conversation to collaborators Jun 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants