[ES6] 21. Esnext, Es6-shim & Node

Source: Internet
Author: User

Es-next:

Esnext is similar to traceur, you can use command line to compile files.

Install:

Install esnext-g


Here's how to compile a, a single file, a print it to stdout:

Esnext Myfile.js

To compile many files at once, specify an output directory:

Esnext-o build lib/**/*.js

To enable source maps for these files, add the **--source-maps** flag.

But Esnext doesn ' t support as many ES6 features as traceur, so it's not that popular.


Es-shim

Es-shim is different from traceur and Esnext. It is a list of shim and polyfills which you can include and use in the browser.
So it's really easy-to-use.

Install:

Install Es6-shim

Node

For Windows, need-install nodist for Node Manager.

Usage:

[ES6] 21. Esnext, Es6-shim & Node

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.