Skip to content

Commit

Permalink
feat: Implement babel-loader in webpack (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
tavogel authored and lance committed Oct 25, 2019
1 parent 91e2dbe commit 7b97914
Show file tree
Hide file tree
Showing 3 changed files with 501 additions and 280 deletions.
16 changes: 15 additions & 1 deletion config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,21 @@ function generateConfig (name) {
}
})
],
devtool: 'source-map'
devtool: 'source-map',
module: {
rules: [
{
test: /\.m?js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env']
}
}
}
]
}
};
return config;
}
Expand Down
Loading

0 comments on commit 7b97914

Please sign in to comment.