Skip to content

Feat/sui bundler stats improvement#1971

Merged
andresz1 merged 2 commits intomasterfrom
feat/sui_bundler_stats_improvement
Mar 3, 2026
Merged

Feat/sui bundler stats improvement#1971
andresz1 merged 2 commits intomasterfrom
feat/sui_bundler_stats_improvement

Conversation

@oriolpuig
Copy link
Contributor

@oriolpuig oriolpuig commented Mar 2, 2026

Allow pass stats options from outside to be used on large projects

Description

We have reached the size limit for Node.js, so we need to avoid some topics in the json stats to compare our bundle size well.

Example

/runner/_work/frontend-fc--web-server/frontend-fc--web-server/node_modules/@s-ui/bundler/bin/sui-bundler-build.js:90
    fs.writeFileSync(filePath, JSON.stringify(stats.toJson(), null, 2), {
                                    ^

RangeError: Invalid string length
    at JSON.stringify (<anonymous>)
    at /runner/_work/frontend-fc--web-server/frontend-fc--web-server/node_modules/@s-ui/bundler/bin/sui-bundler-build.js:90:37
    at finalCallback (/runner/_work/frontend-fc--web-server/frontend-fc--web-server/node_modules/webpack/lib/Compiler.js:498:32)
    at /runner/_work/frontend-fc--web-server/frontend-fc--web-server/node_modules/webpack/lib/Compiler.js:576:17
    at /runner/_work/frontend-fc--web-server/frontend-fc--web-server/node_modules/webpack/lib/HookWebpackError.js:67:2
    at Hook.eval [as callAsync] (eval at create (/runner/_work/frontend-fc--web-server/frontend-fc--web-server/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/runner/_work/frontend-fc--web-server/frontend-fc--web-server/node_modules/tapable/lib/Hook.js:18:14)
    at Cache.storeBuildDependencies (/runner/_work/frontend-fc--web-server/frontend-fc--web-server/node_modules/webpack/lib/Cache.js:126:37)
    at /runner/_work/frontend-fc--web-server/frontend-fc--web-server/node_modules/webpack/lib/Compiler.js:572:19
    at Hook.eval [as callAsync] (eval at create (/runner/_work/frontend-fc--web-server/frontend-fc--web-server/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/runner/_work/frontend-fc--web-server/frontend-fc--web-server/node_modules/tapable/lib/Hook.js:18:14)
    at /runner/_work/frontend-fc--web-server/frontend-fc--web-server/node_modules/webpack/lib/Compiler.js:568:23
    at Compiler.emitRecords (/runner/_work/frontend-fc--web-server/frontend-fc--web-server/node_modules/webpack/lib/Compiler.js:1044:4)
    at /runner/_work/frontend-fc--web-server/frontend-fc--web-server/node_modules/webpack/lib/Compiler.js:558:11
    at /runner/_work/frontend-fc--web-server/frontend-fc--web-server/node_modules/webpack/lib/Compiler.js:1007:14
    at Hook.eval [as callAsync] (eval at create (/runner/_work/frontend-fc--web-server/frontend-fc--web-server/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/runner/_work/frontend-fc--web-server/frontend-fc--web-server/node_modules/tapable/lib/Hook.js:18:14)
    at /runner/_work/frontend-fc--web-server/frontend-fc--web-server/node_modules/webpack/lib/Compiler.js:1004:27
    at /runner/_work/frontend-fc--web-server/frontend-fc--web-server/node_modules/neo-async/async.js:2818:7
    at done (/runner/_work/frontend-fc--web-server/frontend-fc--web-server/node_modules/neo-async/async.js:3522:9)
    at Hook.eval [as callAsync] (eval at create (/runner/_work/frontend-fc--web-server/frontend-fc--web-server/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at /runner/_work/frontend-fc--web-server/frontend-fc--web-server/node_modules/webpack/lib/Compiler.js:833:33
    at /runner/_work/frontend-fc--web-server/frontend-fc--web-server/node_modules/graceful-fs/graceful-fs.js:143:16
    at /runner/_work/frontend-fc--web-server/frontend-fc--web-server/node_modules/graceful-fs/graceful-fs.js:61:14
    at FSReqCallback.oncomplete (node:fs:187:23)


@andresz1 andresz1 merged commit 1e51f04 into master Mar 3, 2026
2 checks passed
@andresz1 andresz1 deleted the feat/sui_bundler_stats_improvement branch March 3, 2026 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants