react-monaco-editor
Version:
Monaco Editor for React
20 lines (18 loc) • 388 B
JavaScript
;
/**
*
* Returns an module.rule object that has the babel loader if invoked
*
* @param {Void} _ - void value
* @returns {Function} A callable function that adds the babel-loader with env preset
*/
module.exports = _ => {
return {
test: `${new RegExp(/\.js$/)}`,
exclude: "/node_modules/",
loader: "'babel-loader'",
options: {
presets: ["'env'"]
}
};
};