babel-preset-es2015-without-strict

2018-11-18 admin

babel-preset-es2015-without-strict是什么

什么是babel-preset-es2015-without-strict,Babel preset for all es2015 plugins without 'use strict' prepend

babel-preset-es2015-without-strict使用教程帮助文档

babel-preset-es2015-without-strict

Babel preset for all es2015 plugins without ‘use strict’ prepend.

Install

$ npm install --save-dev babel-preset-es2015-without-strict

Usage

Via .babelrc (Recommended)

.babelrc

{
  "presets": ["es2015-without-strict"]
}

Via CLI

$ babel script.js --presets es2015-without-strict 

Via Node API

require("babel-core").transform("code", {
  presets: ["es2015-without-strict"]
});

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-45772.html

文章标题:babel-preset-es2015-without-strict

回到顶部