Commit 9b967e0 1 parent e709184 commit 9b967e0 Copy full SHA for 9b967e0
File tree 2 files changed +6
-4
lines changed
examples/react-scripts/cypress/plugins
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const devServer = require('@cypress/react/plugins/react-scripts')
8
8
* @type {Cypress.PluginConfig }
9
9
*/
10
10
module . exports = ( on , config ) => {
11
- devServer ( on , config )
11
+ devServer ( on , config , { } )
12
12
13
13
// IMPORTANT to return the config object
14
14
// with the any changed environment variables
Original file line number Diff line number Diff line change @@ -7,9 +7,11 @@ const { getTranspileFolders } = require('../utils/get-transpile-folders')
7
7
const { addFolderToBabelLoaderTranspileInPlace } = require ( '../utils/babel-helpers' )
8
8
const { reactScriptsFiveModifications, isReactScripts5 } = require ( '../../dist/react-scripts/reactScriptsFive' )
9
9
10
- module . exports = function findReactScriptsWebpackConfig ( config , {
11
- webpackConfigPath,
12
- } = { webpackConfigPath : 'react-scripts/config/webpack.config' } ) {
10
+ module . exports = function findReactScriptsWebpackConfig ( config , devServerOptions ) {
11
+ const webpackConfigPath = ( devServerOptions && devServerOptions . webpackConfigPath )
12
+ ? devServerOptions . webpackConfigPath
13
+ : 'react-scripts/config/webpack.config'
14
+
13
15
// this is required because
14
16
// 1) we use our own HMR and we don't need react-refresh transpiling overhead
15
17
// 2) it doesn't work with process.env=test @see https://github.com/cypress-io/cypress-realworld-app/pull/832
You can’t perform that action at this time.
0 commit comments