Skip to content

Commit

Permalink
fix: default object to destructure
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiller1990 committed Jun 4, 2021
1 parent 5ecf326 commit 29d1257
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const { addCypressToWebpackEslintRulesInPlace } = require('../utils/eslint-helpe
const { getTranspileFolders } = require('../utils/get-transpile-folders')
const { addFolderToBabelLoaderTranspileInPlace } = require('../utils/babel-helpers')

module.exports = function findReactScriptsWebpackConfig (config, { webpackConfigPath = 'react-scripts/config/webpack.config' }) {
module.exports = function findReactScriptsWebpackConfig (config, {
webpackConfigPath,
} = { webpackConfigPath: 'react-scripts/config/webpack.config' }) {
// this is required because
// 1) we use our own HMR and we don't need react-refresh transpiling overhead
// 2) it doesn't work with process.env=test @see https://github.com/cypress-io/cypress-realworld-app/pull/832
Expand Down

0 comments on commit 29d1257

Please sign in to comment.