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
Global setup is called after the server is created, so isProduction is already set. Did you try setting it in the config file for example? I am not sure how it worked before since we never actually used dev/prod conditions before.
haoqunjiang
added a commit
to vitejs/vite-plugin-vue
that referenced
this issue
Feb 1, 2024
Describe the bug
#4980 somehow broke this test case in vite-plugin-vue.
The test case tests the production bundling of a vue file by setting
process.env.NODE_ENV
toproduction
in vitestglobalSetup
https://github.com/vitejs/vite-plugin-vue/blob/2c68a7c901a9ef70b46f8befa3599ed86a453982/playground/vitestGlobalSetup.ts#L12-L14Somehow, it's no longer respected after #4980
Reproduction
vitejs/vite-plugin-vue#332
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: