Use 'babel-loader' without "require.resolve"

This commit is contained in:
igor-dv 2018-08-23 16:03:41 +03:00
parent 489d55d258
commit 06d799cf9b
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ export default ({ configDir, quiet, babelOptions }) => {
test: /\.jsx?$/,
use: [
{
loader: require.resolve('babel-loader'),
loader: 'babel-loader',
options: babelOptions,
},
],

View File

@ -68,7 +68,7 @@ export default ({ configDir, babelOptions }) => {
test: /\.jsx?$/,
use: [
{
loader: require.resolve('babel-loader'),
loader: 'babel-loader',
options: babelOptions,
},
],