How to install babel and using ES6 locally on Browser?

后端 未结 5 1116
猫巷女王i
猫巷女王i 2021-02-04 03:06

So, I am following tutorial to learn ES2015 on here:

http://k33g.github.io/2015/05/02/ES6.html

But, I don\'t find this file based on that tutorial:

<         


        
5条回答
  •  余生分开走
    2021-02-04 03:46

    You need use browser.js from babel-browser package: https://babeljs.io/docs/usage/browser/

    And best of all to use a compilation on the server side.

提交回复
热议问题