Modifying default webpack options ? #24751
Replies: 2 comments
-
+1 I have a similar issue to @warpdesign - trying to use The exact error I'm getting is Has anyone come accross this issue? |
Beta Was this translation helpful? Give feedback.
-
Not sure if this helps anyone but maybe more insight into this issue. I was using the Webpack It's a function which takes in the params That being said, I ran into a whole new set of errors, but I do believe it gets past this issue (albeit in a little bit of a hacky way). Now, when I run Cypress with debug mode
I think ultimately the pre-processor should know how to handle the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It seems that cypress already supports TypeScript/webpack out of the box without any plugin but I didn't find a way to modify the default webpack options (I just want to add a new alias, I don't want to touch anything else).
There is a link to this page in the documentation but it seems to be outdated:
@cypress/webpack-preprocessor
webpackPreprocessor.defaultOptions
configuration doesn't seem to match today's default Cypress webpack configuration as simply callingon('file:preprocessor', webpackPreprocessor(wepackPreprocessor.defaultOptions))
without modifying it won't work and will breakts/tsx
support (this default config doesn't have any tsx+ts rules/extensions defined).What is the preferred way to add aliases to the default Cypress webpack configuration?
Beta Was this translation helpful? Give feedback.
All reactions