Skip to content

conradz/esnext-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esnext-loader

Webpack loader for esnext

NPM Build Status

Usage

Just use the esnext loader to automatically transpile ES6 code.

npm install --save-dev esnext-loader

Then in any file:

require('esnext!./file.js');

Example Configuration

Example webpack.config.js file that automatically compiles all .js files using esnext. See the webpack loader documentation for more information.

module.exports = {
    module: {
        loaders: [
            { test: /\.js$/, loader: 'esnext' }
        ]
    }
};

You can set esnext options by providing query parameters. All esnext options are available except for source map configuration.

// ...
loaders: [
    { test: /\.js$/, loader: 'esnext?class=false' }
]
// ...

About

Webpack loader for esnext

Resources

Stars

Watchers

Forks

Packages

No packages published