-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support webpack-dev-server v5 in @cypress/webpack-dev-server (#…
…29306) * feat: support webpack-dev-server-5 for @cypress/webpack-dev-server [run ci] * sidestep Forge types installed by webpack dev server [run ci] * add changelog entry * remove webpack 4 types * format changelog * Update cli/CHANGELOG.md * Update npm/webpack-dev-server/src/helpers/sourceRelativeWebpackModules.ts Co-authored-by: Matt Schile <mschile@cypress.io> * add back in importsNotUsedAsValues and update system test snapshot --------- Co-authored-by: Jennifer Shehane <jennifer@cypress.io> Co-authored-by: Matt Schile <mschile@cypress.io>
- Loading branch information
1 parent
b50ddd6
commit d7e9d60
Showing
26 changed files
with
12,344 additions
and
282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
117 changes: 72 additions & 45 deletions
117
npm/webpack-dev-server/__snapshots__/makeWebpackConfig.spec.ts.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,77 @@ | ||
exports['makeWebpackConfig ignores userland webpack `output.publicPath` and `devServer.overlay` with webpack-dev-server v4 1'] = { | ||
"output": { | ||
"publicPath": "/test-public-path/", | ||
"filename": "[name].js" | ||
}, | ||
"devServer": { | ||
"magicHtml": true, | ||
"client": { | ||
"progress": false, | ||
"overlay": false | ||
} | ||
}, | ||
"optimization": { | ||
"emitOnErrors": true, | ||
"sideEffects": false, | ||
"splitChunks": { | ||
"chunks": "all" | ||
} | ||
}, | ||
"devtool": "inline-source-map", | ||
"mode": "development", | ||
"plugins": [ | ||
"HtmlWebpackPlugin", | ||
"CypressCTWebpackPlugin" | ||
] | ||
'output': { | ||
'publicPath': '/test-public-path/', | ||
'filename': '[name].js', | ||
}, | ||
'devServer': { | ||
'magicHtml': true, | ||
'client': { | ||
'progress': false, | ||
'overlay': false, | ||
}, | ||
}, | ||
'optimization': { | ||
'emitOnErrors': true, | ||
'sideEffects': false, | ||
'splitChunks': { | ||
'chunks': 'all', | ||
}, | ||
}, | ||
'devtool': 'inline-source-map', | ||
'mode': 'development', | ||
'plugins': [ | ||
'HtmlWebpackPlugin', | ||
'CypressCTWebpackPlugin', | ||
], | ||
} | ||
|
||
exports['makeWebpackConfig ignores userland webpack `output.publicPath` and `devServer.overlay` with webpack-dev-server v3 1'] = { | ||
"output": { | ||
"publicPath": "/test-public-path/", | ||
"filename": "[name].js" | ||
}, | ||
"devServer": { | ||
"progress": true, | ||
"overlay": false | ||
}, | ||
"optimization": { | ||
"noEmitOnErrors": false, | ||
"sideEffects": false, | ||
"splitChunks": { | ||
"chunks": "all" | ||
} | ||
}, | ||
"devtool": "inline-source-map", | ||
"mode": "development", | ||
"plugins": [ | ||
"HtmlWebpackPlugin", | ||
"CypressCTWebpackPlugin" | ||
] | ||
'output': { | ||
'publicPath': '/test-public-path/', | ||
'filename': '[name].js', | ||
}, | ||
'devServer': { | ||
'progress': true, | ||
'overlay': false, | ||
}, | ||
'optimization': { | ||
'noEmitOnErrors': false, | ||
'sideEffects': false, | ||
'splitChunks': { | ||
'chunks': 'all', | ||
}, | ||
}, | ||
'devtool': 'inline-source-map', | ||
'mode': 'development', | ||
'plugins': [ | ||
'HtmlWebpackPlugin', | ||
'CypressCTWebpackPlugin', | ||
], | ||
} | ||
|
||
exports['makeWebpackConfig ignores userland webpack `output.publicPath` and `devServer.overlay` with webpack-dev-server v5 1'] = { | ||
'output': { | ||
'publicPath': '/test-public-path/', | ||
'filename': '[name].js', | ||
}, | ||
'devServer': { | ||
'magicHtml': true, | ||
'client': { | ||
'progress': false, | ||
'overlay': false, | ||
}, | ||
}, | ||
'optimization': { | ||
'emitOnErrors': true, | ||
'sideEffects': false, | ||
'splitChunks': { | ||
'chunks': 'all', | ||
}, | ||
}, | ||
'devtool': 'inline-source-map', | ||
'mode': 'development', | ||
'plugins': [ | ||
'HtmlWebpackPlugin', | ||
'CypressCTWebpackPlugin', | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
d7e9d60
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
linux x64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally:
d7e9d60
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
linux arm64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally:
d7e9d60
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
darwin arm64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally:
d7e9d60
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
darwin x64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally:
d7e9d60
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
win32 x64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally: