首页 > 解决方案 > vue-cli-service build --target lib disable "use strict"

问题描述

IE11 does not work correctly with "use strict". But I do not know how to remove it, because I understand that this happens at the time of assembly. But I didn't find any answers in the vue documentation. The command that I run: cross-env NODE_ENV=production vue-cli-service build --target lib --name testLib ./src/index.js --skip-plugins @vue/cli-plugin-eslint

I get an error in IE11: Using multiple property definitions in strict mode is prohibited enter image description here

How can I resolve this error?

标签: vue.js

解决方案


推荐阅读