mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-03 05:04:51 +08:00
Use 'babel-loader' without "require.resolve"
This commit is contained in:
parent
489d55d258
commit
06d799cf9b
@ -80,7 +80,7 @@ export default ({ configDir, quiet, babelOptions }) => {
|
||||
test: /\.jsx?$/,
|
||||
use: [
|
||||
{
|
||||
loader: require.resolve('babel-loader'),
|
||||
loader: 'babel-loader',
|
||||
options: babelOptions,
|
||||
},
|
||||
],
|
||||
|
@ -68,7 +68,7 @@ export default ({ configDir, babelOptions }) => {
|
||||
test: /\.jsx?$/,
|
||||
use: [
|
||||
{
|
||||
loader: require.resolve('babel-loader'),
|
||||
loader: 'babel-loader',
|
||||
options: babelOptions,
|
||||
},
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user