You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
340 B
8 lines
340 B
module.exports = ({ config }, options) => config.module
|
|
.rule('compile')
|
|
.test(options.test || /\.jsx?$/)
|
|
.when(options.include, rule => rule.include.merge(options.include))
|
|
.when(options.exclude, rule => rule.exclude.merge(options.exclude))
|
|
.use('babel')
|
|
.loader(require.resolve('babel-loader'))
|
|
.options(options.babel);
|
|
|