1.安装legacy
npm install @vitejs/plugin-legacy --save-dev
import legacy from '@vitejs/plugin-legacy' //引入
export default {
plugins: [
//加入这个
legacy({
targets: ['Chrome 64'],
modernPolyfills: true
}),
],
}
发布于 2024-08-08 173 次阅读
1.安装legacy
npm install @vitejs/plugin-legacy --save-dev
import legacy from '@vitejs/plugin-legacy' //引入
export default {
plugins: [
//加入这个
legacy({
targets: ['Chrome 64'],
modernPolyfills: true
}),
],
}
Comments NOTHING