Skip to content

Commit

Permalink
chore: use "options" instead of query-like for babel-loader
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-skl committed Jul 9, 2019
1 parent 7b557f7 commit f1c3ad5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,11 @@ const externalCssLoader = {
const babelLoader = {
test: /\.js$/,
include: componentsPath,
loader: `${resolveLoader('babel')}?${JSON.stringify({
configFile: path.join(__dirname, '.babelrc'),
loader: resolveLoader('babel'),
options: {
configFile: path.join(__dirname, 'babel.config.js'),
cacheDirectory: true
})}`
}
};

const whatwgLoader = {
Expand Down

0 comments on commit f1c3ad5

Please sign in to comment.