Commit 4b55b120 authored by 张俊's avatar 张俊

兼容测试

parent d7ac0766
This diff is collapsed.
......@@ -6,7 +6,12 @@
"serve": "vite preview"
},
"dependencies": {
"@babel/core": "^7.14.8",
"@babel/preset-env": "^7.14.8",
"@babel/runtime": "^7.14.8",
"@rollup/plugin-babel": "^5.3.0",
"axios": "^0.21.1",
"core-js": "^3.15.2",
"sass": "^1.35.1",
"vue": "^3.0.5",
"vue-i18n": "^9.1.6",
......
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import babel from '@rollup/plugin-babel';
const path = require('path')
console.log(__dirname);
......@@ -30,5 +31,21 @@ export default defineConfig({
build:{
outDir:'dist/zjhl',
assetsDir:'static'
},
rollupInputOptions: {
plugins: [
babel({
presets: [[
"@babel/preset-env",
{
"corejs": 2,
"useBuiltIns": "usage",
"targets": {
"ie": "11"
}
}
]]
})
],
}
})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment