UNPKG

bundler-plate

Version:

A CLI generates a boilerplate and config file for webpack/gulp with the most recommended and commonly used configurations.

23 lines (21 loc) 337 B
/** * * @param {boolean} babelInclude * * @return {string} * */ module.exports = babelInclude => { return babelInclude ? `{ test: /\\.m?js$/, exclude: /(node_modules|bower_components)/, use: { loader: "babel-loader", options: { presets: ["@babel/preset-env"] } } },` : ""; };