* perf: remove isChromatic on real build
* revert: Revert #10475 in MkTime
This reverts commit 7d11cf8ec9
.
* @rollup/plugin-replace as dependencies
* fix pnpm-lock,yaml
---------
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
This commit is contained in:

committed by
GitHub

parent
55c10d0d88
commit
47c7b4b9cc
@@ -1,4 +1,5 @@
|
||||
import path from 'path';
|
||||
import pluginReplace from '@rollup/plugin-replace';
|
||||
import pluginVue from '@vitejs/plugin-vue';
|
||||
import { type UserConfig, defineConfig } from 'vite';
|
||||
|
||||
@@ -46,6 +47,16 @@ export function getConfig(): UserConfig {
|
||||
reactivityTransform: true,
|
||||
}),
|
||||
pluginJson5(),
|
||||
...process.env.NODE_ENV === 'production'
|
||||
? [
|
||||
pluginReplace({
|
||||
preventAssignment: true,
|
||||
values: {
|
||||
'isChromatic()': JSON.stringify(false),
|
||||
},
|
||||
}),
|
||||
]
|
||||
: [],
|
||||
],
|
||||
|
||||
resolve: {
|
||||
|
Reference in New Issue
Block a user