- Google provides a compiler name Traceur for testing ES6 feature.
- Traceur compiles the ES6 code to ES5 for testing ES6 feature.
- You can find more details about Traceur compiler in the following link:
- In this demo, “We will learn to install Traceur in the system”.
- To install Traceur in NODE machine use the npm install –g traceur in the terminal.The following screenshot shows the terminal with traceur installation in progress.
- To install Traceur runtime in the browser use the bower install traceur-runtime command.The following screenshot shows the terminal with Traceur installation using Bower.
- After the successful installation of Traceur using Bower you can find the Traceur runtime is downloaded to bower_components.The following screenshot shows the downloaded Traceur runtime.
- Now traceur-runtime.js can be included in the HTML file to include Traceur environment in browser.