From a6684b89d14986a7516862a37d12de32bdef0d34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aar=C3=B3n=20Garc=C3=ADa=20Herv=C3=A1s?= Date: Mon, 24 Jun 2024 15:51:38 +0200 Subject: [PATCH] Improve comment --- test/karma.conf.js | 2 +- test/karma.conf.profile.js | 2 +- test/regressions/webpack.config.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/karma.conf.js b/test/karma.conf.js index d3b8627f98d74e..998491a3ba9ac0 100644 --- a/test/karma.conf.js +++ b/test/karma.conf.js @@ -189,7 +189,7 @@ module.exports = function setKarmaConfig(config) { // needed by sourcemap fs: false, path: false, - // needed by Next.js (and maybe others) + // Exclude polyfill and treat 'stream' as an empty module since it is not required. next -> gzip-size relies on it. stream: false, vm: false, }, diff --git a/test/karma.conf.profile.js b/test/karma.conf.profile.js index f9c1f46283d7a5..ec06840bee9602 100644 --- a/test/karma.conf.profile.js +++ b/test/karma.conf.profile.js @@ -108,7 +108,7 @@ module.exports = function setKarmaConfig(config) { // needed by sourcemap fs: false, path: false, - // needed by Next.js (and maybe others) + // Exclude polyfill and treat 'stream' as an empty module since it is not required. next -> gzip-size relies on it. stream: false, }, }, diff --git a/test/regressions/webpack.config.js b/test/regressions/webpack.config.js index 5114187fdb92cc..bd7c7e9fdc047c 100644 --- a/test/regressions/webpack.config.js +++ b/test/regressions/webpack.config.js @@ -57,7 +57,7 @@ module.exports = { fallback: { // Exclude polyfill and treat 'fs' as an empty module since it is not required. next -> gzip-size relies on it. fs: false, - // needed by Next.js (and maybe others) + // Exclude polyfill and treat 'stream' as an empty module since it is not required. next -> gzip-size relies on it. stream: false, // Exclude polyfill and treat 'zlib' as an empty module since it is not required. next -> gzip-size relies on it. zlib: false,