Skip to content

Commit

Permalink
babel-loader (#1427)
Browse files Browse the repository at this point in the history
  • Loading branch information
BryonLewis authored Jun 6, 2024
1 parent d6b6e05 commit dad136f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions client/vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ function chainWebpack(config) {
release: process.env.VUE_APP_GIT_HASH
}]);
}
config.module
.rule('babel')
.test(/\.js$/)
.exclude.add(/node_modules/)
.end()
.use('babel-loader')
.loader('babel-loader')
.options({
presets: ['@babel/preset-env']
});
}

module.exports = {
Expand Down

0 comments on commit dad136f

Please sign in to comment.