1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-07-23 14:45:29 +00:00

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.
This commit is contained in:
YuryShkoda
2026-07-21 18:03:19 +03:00
parent 3d0cdc85cd
commit 3d4fe304e9
-9
View File
@@ -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'),