mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-20 14:19:59 -06:00
14 lines
324 B
JavaScript
14 lines
324 B
JavaScript
module.exports = api => {
|
|
api.chainWebpack(webpackConfig => {
|
|
webpackConfig.module
|
|
.rule('js')
|
|
.test(/\.jsx?$/)
|
|
.include
|
|
.add(api.resolve('src'))
|
|
.add(api.resolve('test'))
|
|
.end()
|
|
.use('babel-loader')
|
|
.loader(require.resolve('babel-loader'))
|
|
})
|
|
}
|