Skip to content

Commit dff45ca

Browse files
author
Blue F
authored
Merge pull request #20142 from cypress-io/9b967e06f5-master-into-develop
chore: merge master (9b967e0) into develop
2 parents a3f0d63 + 2bad703 commit dff45ca

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

npm/react/examples/react-scripts/cypress/plugins/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const devServer = require('@cypress/react/plugins/react-scripts')
88
* @type {Cypress.PluginConfig}
99
*/
1010
module.exports = (on, config) => {
11-
devServer(on, config)
11+
devServer(on, config, {})
1212

1313
// IMPORTANT to return the config object
1414
// with the any changed environment variables

npm/react/plugins/react-scripts/findReactScriptsWebpackConfig.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ const { getTranspileFolders } = require('../utils/get-transpile-folders')
77
const { addFolderToBabelLoaderTranspileInPlace } = require('../utils/babel-helpers')
88
const { reactScriptsFiveModifications, isReactScripts5 } = require('../../dist/react-scripts/reactScriptsFive')
99

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+
1315
// this is required because
1416
// 1) we use our own HMR and we don't need react-refresh transpiling overhead
1517
// 2) it doesn't work with process.env=test @see https://github.com/cypress-io/cypress-realworld-app/pull/832

npm/vue/src/shims-vue.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ declare module '*.vue' {
22
import { DefineComponent } from 'vue'
33
const component: DefineComponent<{}, {}, any>
44
export default component
5-
}
5+
}

0 commit comments

Comments
 (0)