We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb9faa8 commit 6e5fd8fCopy full SHA for 6e5fd8f
npm/react/plugins/next/index.js
@@ -1,9 +1,13 @@
1
-const { startDevServer } = require('@cypress/webpack-dev-server')
2
const findNextWebpackConfig = require('./findNextWebpackConfig')
3
4
module.exports = (on, config) => {
5
on('dev-server:start', async (options) => {
6
- return startDevServer({ options, webpackConfig: await findNextWebpackConfig(config) })
+ const webpackConfig = await findNextWebpackConfig(config)
+
7
+ // require('webpack') now points to nextjs bundled version
8
+ const { startDevServer } = require('@cypress/webpack-dev-server')
9
10
+ return startDevServer({ options, webpackConfig })
11
})
12
13
config.env.reactDevtools = true
0 commit comments