Skip to content

Commit

Permalink
Activate babel for the api
Browse files Browse the repository at this point in the history
  • Loading branch information
fredj committed Nov 28, 2018
1 parent f26390c commit 6b52477
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions buildtools/webpack.api.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@ module.exports = (env, argv) => {
const library = argv.library ? argv.library : 'demo';
return {
entry: './api/index.js',
devtool: 'source-map',
module: {
rules: [{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
presets: [require.resolve('@babel/preset-env')]
}
}
}]
},
output: {
filename: 'api.js',
path: dest,
Expand Down

0 comments on commit 6b52477

Please sign in to comment.