bable
p g one
这个作者很懒,什么都没留下…
展开
-
Vue CLI3 bable兼容ie11ie10
Vue CLI3 bable兼容ie11ie10 Vue CLI3不兼容IE11打开空白报错SCRIPT1003: 缺少 ‘:‘ 1、安装依赖 cnpm i @babel/polyfill -S 2、入口文件 main.js 引入依赖 import '@babel/polyfill'; 3.修改 babel.config.js module.exports = { presets: [ [ '@vue/app', { useBuiltIns: 'ent原创 2021-05-26 11:18:45 · 578 阅读 · 0 评论 -
bable打包的use strict取消(vue-cli3)
bable打包的use strict取消vue-cli3 1.插件transform-remove-strict-mode npm i babel-plugin-transform-remove-strict-mode -S 或者yarn add babel-plugin-transform-remove-strict-mode -S 2.根目录新建loader文件夹 loader下新建remove-strict.js function removeStrict(code) { return cod原创 2021-05-26 11:11:54 · 1610 阅读 · 0 评论