The webpack babel-loader with support for browsers defined in .browserslistrc for babel 6.x.
According to the missing support of a shareable browserslist config in babel-preset-env (issue 108) and the comment of skleeschulte, this functions provides a babel-loader configuration including the target browsers configuration from the browserslistrc file.
$ npm install --save-dev @moccu/babel-browserslist-loader
const babelloader = require('@moccu/babel-browserslist-loader');
module.exports = {
// webpack config...
rules: [
{
test: /\.js$/
use: [
babelloader()
]
}
]
};
- Run tests using
npm test
- Set new version in package.json
- Publish new version on npm using
npm publish --access=public
- Add github release and tag including release notes