Skip to content

Commit

Permalink
fix: have default path for react webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiller1990 committed Jun 4, 2021
1 parent 887f60a commit 5ecf326
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ 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 }) {
module.exports = function findReactScriptsWebpackConfig (config, { 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 5ecf326

Please sign in to comment.