bable npm commonly used modules,

More commonly npm modules please visit: npm Common Module Summary


bable This is a JavaScript compiler.

Babel is a tool chain, primarily for conversion to backwards-compatible version of JavaScript in the current and older browsers or code that will ECMAScript 2015+ environment. Here are the main thing Babel can do for you:

  • Transformational grammar
  • Target environment lacking Polyfill function (via @ babel / polyfill )
  • Source converter (codemods)
  • And more! (See these videos for inspiration)

Can be debugged

Source map support, so you can easily debug compiled code.

Meet specifications

Babel tries to reasonably possible to comply with the ECMAScript standard. As a compromise the performance, it may also have some specific options, make it more compliant.

compact

When Babel try to use as little code, without relying on a huge run.
In some cases, it may be difficult to achieve and may compromise the readability of the specification requirements, file size and speed for the "loose" options for a particular conversion.

Greater use of the document, please click visit bable tool official website .

installation

A key installation much explanation

npm install --save-dev bable

use

user's guidance

Babel tool chain has many tools that attempt to make it easy for you to use Babel, whether you are "end users" or Babel build their own integration. This will be the rapid introduction of these tools, you can learn more about them in the "Use" section of the document.

If you are using a framework, then the configuration Babel's work may be different, or indeed already done for you. Check out our interactive setup guide .

Guess you like

Origin www.cnblogs.com/jiaoshou/p/12189473.html