MSP-3289 add new json-schema-lib
This commit is contained in:
1 parent
358531bead
commit
ef8130d352
7 files changed
+1194
-2524
No files matched your search
+4
-15
@@ -1,6 +1,6 @@
|
||||
import legacy from '@vitejs/plugin-legacy'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import { defineConfig, loadEnv } from 'vite'
|
||||
import { nodePolyfills } from 'vite-plugin-node-polyfills'
|
||||
import svgr from 'vite-plugin-svgr'
|
||||
|
||||
import tsconfigPaths from 'vite-tsconfig-paths'
|
||||
@@ -16,22 +16,11 @@ export default defineConfig(({ mode }) => {
|
||||
APP_VERSION: JSON.stringify(process.env.npm_package_version)
|
||||
},
|
||||
build: {
|
||||
sourcemap:true,
|
||||
minify: 'terser',
|
||||
outDir: 'build',
|
||||
chunkSizeWarningLimit: 1600,
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks(id) {
|
||||
if (id.includes('node_modules')) {
|
||||
return id
|
||||
.toString()
|
||||
.split('node_modules/')[1]
|
||||
.split('/')[0]
|
||||
.toString()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
commonjsOptions: { transformMixedEsModules: true },
|
||||
},
|
||||
server: {
|
||||
watch: {
|
||||
@@ -44,6 +33,6 @@ export default defineConfig(({ mode }) => {
|
||||
'/api': env.PROXY_URL
|
||||
}
|
||||
},
|
||||
plugins: [react(), svgr(), tsconfigPaths()]
|
||||
plugins: [react(), svgr(), tsconfigPaths(), nodePolyfills()]
|
||||
}
|
||||
})
|
||||
Reference in new issue
Block a user