Skip to content

Commit

Permalink
coerce babelPresetPlugins to an array
Browse files Browse the repository at this point in the history
  • Loading branch information
seryl committed Jan 18, 2020
1 parent 9352392 commit 810793b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/build/webpack/loaders/next-babel-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = babelLoader.custom(babel => {
isModern: opts.isModern,
pagesDir: opts.pagesDir,
hasModern: opts.hasModern,
babelPresetPlugins: opts.babelPresetPlugins,
babelPresetPlugins: opts.babelPresetPlugins || [],
development: opts.development,
}
const filename = join(opts.cwd, 'noop.js')
Expand Down

0 comments on commit 810793b

Please sign in to comment.