From 3d4fe304e9cfffb142efbc1a5d53db319f786ad5 Mon Sep 17 00:00:00 2001 From: YuryShkoda Date: Tue, 21 Jul 2026 18:03:19 +0300 Subject: [PATCH] fix(build): remove stale node: builtin externals breaking consumer webpack builds The externals block for 'node:fs'/'node:path'/etc. became dead weight when originally added, but the webpack 5.108.4 bump now canonicalizes bare builtin requires to the node: form, matching it. That flips these modules from being polyfilled by node-polyfill-webpack-plugin to leaking as unresolved literal requires in the published bundle. --- webpack.config.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 3fb287c..35ae972 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -27,15 +27,6 @@ const browserConfig = { index: './src/index.ts', minified_sas9: './src/minified/sas9/index.ts' }, - externals: { - 'node:fs': 'node:fs', - 'node:fs/promises': 'node:fs/promises', - 'node:path': 'node:path', - 'node:stream': 'node:stream', - 'node:url': 'node:url', - 'node:events': 'node:events', - 'node:string_decoder': 'node:string_decoder' - }, output: { filename: '[name].js', path: path.resolve(__dirname, 'build'),