vue3+vite配置兼容ie11
下载插件cnpm i @vitejs/plugin-legacy -S引入import legacy from '@vitejs/plugin-legacy'在vite.config.ts中配置plugins: [vue(),legacy({targets: ['ie >= 11'],additionalLegacyPolyfills: ['regenerator-runtime/runti
·
下载插件cnpm i @vitejs/plugin-legacy -S
引入
import legacy from '@vitejs/plugin-legacy'
在vite.config.ts中配置
plugins: [
vue(),
legacy({
targets: ['ie >= 11'],
additionalLegacyPolyfills: ['regenerator-runtime/runtime']
})
],
更多推荐
已为社区贡献4条内容
所有评论(0)