Skip to content
This repository was archived by the owner on Mar 5, 2022. It is now read-only.

Commit c1ddbf4

Browse files
committed
fix: remove plugins for react-scripts, closes #187
1 parent a96bd14 commit c1ddbf4

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"@cypress/webpack-preprocessor": "5.2.0",
107107
"babel-plugin-istanbul": "6.0.0",
108108
"debug": "4.1.1",
109-
"find-webpack": "1.7.3",
109+
"find-webpack": "1.8.0",
110110
"mime-types": "2.1.26"
111111
},
112112
"release": {

plugins/cra-v3/file-preprocessor.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ module.exports = config => {
4242
addFolderToTranspile: config.componentFolder,
4343
coverage: !coverageIsDisabled,
4444
}
45-
const options = getWebpackOptions(opts)
46-
debug('final webpack options %o', options.webpackOptions)
45+
const preprocessorOptions = getWebpackOptions(opts)
4746

48-
return webpackPreprocessor(options)
47+
debug('final webpack options %o', preprocessorOptions.webpackOptions)
48+
49+
return webpackPreprocessor(preprocessorOptions)
4950
}

0 commit comments

Comments
 (0)