babel-preset-es2015-script

2019-06-12 admin

babel-preset-es2015-script是什么

什么是babel-preset-es2015-script,Babel preset for ES2015 in the browser

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

This preset is deprecated

Instead of using this preset use the babel-preset-es2015 with the modules option set to false:

{
  "presets": [ [ "es2015", { modules: false } ] ]
}

babel-preset-es2015-script is now just a different way to write the same.

Old documentation follows:

babel-preset-es2015-script Build Status Greenkeeper badge

Babel preset based on the es2015 preset, but for use inside the browser rather than for an ES6 module. Specifically this preset does not include the transform-es2015-modules-commonjs plugin

Installation

$ npm install --save-dev babel-preset-es2015-script

Usage

{
  "presets": ["es2015-script"]
}

License

This software is licensed under the Apache 2 license, quoted below.

Copyright 2011-2017 Collaborne B.V. <http://github.com/Collaborne/>

Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations under
the License.

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

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

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

文章标题:babel-preset-es2015-script

回到顶部