Skip to content

Commit

Permalink
Merge pull request #4328 from camptocamp/babel-perf
Browse files Browse the repository at this point in the history
Some little performance improvements for Babel
  • Loading branch information
sbrunner authored Oct 24, 2018
2 parents 3b43ee4 + d1a6122 commit 9dd6b14
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions buildtools/webpack.commons.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ const babelPresets = [['env', {
const babelAnnotateUse = {
loader: 'babel-loader',
options: {
comments: false,
cacheDirectory: true,
presets: babelPresets,
plugins: ['@camptocamp/babel-plugin-angularjs-annotate'],
}
Expand Down Expand Up @@ -72,6 +74,8 @@ const olRule = {
loader: 'babel-loader',
options: {
babelrc: false,
comments: false,
cacheDirectory: true,
presets: babelPresets,
}
}
Expand All @@ -83,6 +87,8 @@ const olcsRule = {
loader: 'babel-loader',
options: {
babelrc: false,
comments: false,
cacheDirectory: true,
presets: babelPresets,
}
}
Expand Down

0 comments on commit 9dd6b14

Please sign in to comment.