26 lines
446 B
JavaScript
26 lines
446 B
JavaScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
define: {
|
|
'process.env': process.env
|
|
},
|
|
plugins: [vue()],
|
|
resolve: {
|
|
alias: [
|
|
{
|
|
find: /^~.+/,
|
|
replacement: (val) => {
|
|
return val.replace(/^~/, "");
|
|
},
|
|
},
|
|
],
|
|
},
|
|
build: {
|
|
commonjsOptions: {
|
|
transformMixedEsModules: true,
|
|
}
|
|
}
|
|
})
|