jerrysu / backbone-webpack-example

Example of converting a Backbone app to use Webpack
101 stars 27 forks source link

Enable ECMAScript 6, convert models and collections to ES6 modules #9

Closed jerrysu closed 9 years ago

jerrysu commented 9 years ago

When babel-loader is added to the webpack config, it enables ES6 to be used throughout the app.

http://babeljs.io/ transpiles ES6 to code supported by ES5 browsers, enabling the use of the latest and greatest JavaScript APIs and syntaxes in your codebase. You can use es5-shim to ensure that this code runs on older browsers.