fix vite build
This commit is contained in:
parent
5ac094e51b
commit
6095b33ab2
|
@ -86,6 +86,11 @@ export default defineConfig(({ command, mode }) => {
|
||||||
__VUE_PROD_DEVTOOLS__: false,
|
__VUE_PROD_DEVTOOLS__: false,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// https://vitejs.dev/guide/dep-pre-bundling.html#monorepos-and-linked-dependencies
|
||||||
|
optimizeDeps: {
|
||||||
|
include: ['misskey-js'],
|
||||||
|
},
|
||||||
|
|
||||||
build: {
|
build: {
|
||||||
target: [
|
target: [
|
||||||
'chrome108',
|
'chrome108',
|
||||||
|
@ -110,6 +115,11 @@ export default defineConfig(({ command, mode }) => {
|
||||||
emptyOutDir: false,
|
emptyOutDir: false,
|
||||||
sourcemap: process.env.NODE_ENV === 'development',
|
sourcemap: process.env.NODE_ENV === 'development',
|
||||||
reportCompressedSize: false,
|
reportCompressedSize: false,
|
||||||
|
|
||||||
|
// https://vitejs.dev/guide/dep-pre-bundling.html#monorepos-and-linked-dependencies
|
||||||
|
commonjsOptions: {
|
||||||
|
include: [/misskey-js/, /node_modules/],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
test: {
|
test: {
|
||||||
|
|
Loading…
Reference in New Issue