@cypress/webpack-dev-server 1.8.1 → 1.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/makeWebpackConfig.js +7 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
# [@cypress/webpack-dev-server-v1.8.2](https://github.com/cypress-io/cypress/compare/@cypress/webpack-dev-server-v1.8.1...@cypress/webpack-dev-server-v1.8.2) (2022-03-03)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* avoid nextjs unsafeCache and watchOptions ([#20440](https://github.com/cypress-io/cypress/issues/20440)) ([9f60901](https://github.com/cypress-io/cypress/commit/9f6090170b0675d25b26b98cd0f987a5e395ab78))
|
|
7
|
+
* error regression - strip ansi colors out of cy.fixture() error message ([#20335](https://github.com/cypress-io/cypress/issues/20335)) ([e0bd6ac](https://github.com/cypress-io/cypress/commit/e0bd6ac2aaf8d00b9233fffefed8f6ed2484bf45))
|
|
8
|
+
|
|
1
9
|
# [@cypress/webpack-dev-server-v1.8.1](https://github.com/cypress-io/cypress/compare/@cypress/webpack-dev-server-v1.8.0...@cypress/webpack-dev-server-v1.8.1) (2022-02-08)
|
|
2
10
|
|
|
3
11
|
|
|
@@ -42,6 +42,7 @@ const removeList = ['HtmlWebpackPlugin', 'PreloadPlugin', 'HtmlPwaPlugin'];
|
|
|
42
42
|
const OsSeparatorRE = RegExp(`\\${path.sep}`, 'g');
|
|
43
43
|
const posixSeparator = '/';
|
|
44
44
|
function makeWebpackConfig(userWebpackConfig, options) {
|
|
45
|
+
var _a;
|
|
45
46
|
return __awaiter(this, void 0, void 0, function* () {
|
|
46
47
|
const { projectRoot, devServerPublicPathRoute, files, supportFile, devServerEvents, template } = options;
|
|
47
48
|
debug(`User passed in webpack config with values %o`, userWebpackConfig);
|
|
@@ -86,6 +87,12 @@ function makeWebpackConfig(userWebpackConfig, options) {
|
|
|
86
87
|
return true;
|
|
87
88
|
});
|
|
88
89
|
}
|
|
90
|
+
if (typeof ((_a = userWebpackConfig === null || userWebpackConfig === void 0 ? void 0 : userWebpackConfig.module) === null || _a === void 0 ? void 0 : _a.unsafeCache) === 'function') {
|
|
91
|
+
const originalCachePredicate = userWebpackConfig.module.unsafeCache;
|
|
92
|
+
userWebpackConfig.module.unsafeCache = (module) => {
|
|
93
|
+
return originalCachePredicate(module) && !/[\\/]webpack-dev-server[\\/]dist[\\/]browser\.js/.test(module.resource);
|
|
94
|
+
};
|
|
95
|
+
}
|
|
89
96
|
const mergedConfig = (0, webpack_merge_1.merge)(userWebpackConfig, (0, webpack_config_1.default)(template), dynamicWebpackConfig);
|
|
90
97
|
mergedConfig.entry = entry;
|
|
91
98
|
debug('Merged webpack config %o', mergedConfig);
|