Currently, the @cypress/webpack-dev-server supports passing a webpackConfig argument, however only Record<string, any> type is supported. Namely, if I pass webpack configuration of function type like:
I have a webpack configuration of function type https://github.com/chenxsan/mindmapping/blob/main/webpack.config.js and I want to reuse it for cypress component test. But it won't work at the moment so I have to manually copy some webpack configurations to the cypress/plugins/index.js.
What would you like?
Currently, the
@cypress/webpack-dev-server
supports passing awebpackConfig
argument, however onlyRecord<string, any>
type is supported. Namely, if I pass webpack configuration of function type like:It won't work.
Why is this needed?
I have a webpack configuration of function type https://github.com/chenxsan/mindmapping/blob/main/webpack.config.js and I want to reuse it for cypress component test. But it won't work at the moment so I have to manually copy some webpack configurations to the
cypress/plugins/index.js
.See a reproducible branch here https://github.com/chenxsan/mindmapping/pull/11.