You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I add vanillaExtractPlugin() to my config, other plugins start getting incorrect config values.
For example vite-plugin-relay-lite gets command: "serve" in production build. It leads to indefinitely blocked build.
Maybe it is related to #1408 because switching plugin version to 3.9.5 fixes the issue.
You can check it out in my reproduction repository.
When I run build without vanillaExtractPlugin I get next console output:
yarn run v1.22.22
$ vite build
config build
plugin build
vite v5.3.5 building for production...
✓ 7 modules transformed.
dist/index.html 0.45 kB │ gzip: 0.29 kB
dist/assets/index-BfibREyH.css 1.21 kB │ gzip: 0.63 kB
dist/assets/index-BLvcXRAk.js 2.59 kB │ gzip: 1.38 kB
✓ built in 68ms
Done in 0.32s.
But with plugin I get another set of logs:
yarn run v1.22.22
$ vite build
config build
plugin build
vite v5.3.5 building for production...
config build
plugin serve
✓ 7 modules transformed.
dist/index.html 0.45 kB │ gzip: 0.29 kB
dist/assets/index-BfibREyH.css 1.21 kB │ gzip: 0.63 kB
dist/assets/index-BLvcXRAk.js 2.59 kB │ gzip: 1.38 kB
✓ built in 111ms
Done in 0.42s.
Describe the bug
When I add
vanillaExtractPlugin()
to my config, other plugins start getting incorrect config values.For example vite-plugin-relay-lite gets
command: "serve"
in production build. It leads to indefinitely blocked build.Maybe it is related to #1408 because switching plugin version to 3.9.5 fixes the issue.
You can check it out in my reproduction repository.
When I run build without vanillaExtractPlugin I get next console output:
But with plugin I get another set of logs:
Hope this helps to find the issue.
Reproduction
https://github.com/Spaubleit/vanilla-extract-vite-config-bug
System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: