如何忽略Babel Standalone的严格模式

时间:2020-04-06 06:46:29

标签: javascript babeljs

<script src="/static/js/babel.min.js"></script>
<script src="/static/js/polyfill.min.js"></script>
<script src="/static/js/common.js" type="text/babel" data-presets="es2015, stage-2"></script>

我正在如上所述使用babel-standalone在IE11 +上使用ES6 +。

但是在IE控制台中,严格模式无法正常工作,因此我想在babel上将其删除。

如何更改选项?

0 个答案:

没有答案
相关问题