There was an error while loading. Please reload this page.
1 parent 05afe58 commit 4d6a399Copy full SHA for 4d6a399
1 file changed
cypress/plugins/index.js
@@ -21,7 +21,10 @@ const webpackPreprocessor = require('@cypress/webpack-batteries-included-preproc
21
module.exports = (on, config) => {
22
cypressSplit(on, config)
23
24
- on('file:preprocessor', webpackPreprocessor())
+ const webpackOptions = webpackPreprocessor.getFullWebpackOptions()
25
+ webpackOptions.resolve.conditionNames = ['import', ...(webpackOptions.resolve.conditionNames ?? [])]
26
+
27
+ on('file:preprocessor', webpackPreprocessor({ webpackOptions }))
28
29
return config
30
}
0 commit comments