Repository navigation
Unfinished hook action on exit: (terser) renderChunk #1426
Replies: 2 comments
|
Having a similar issue currently while trying to build lobe-chat |
|
One concrete cause worth checking in the Termux environment shown in the stack is an empty CPU list: node -p "require('node:os').cpus().length"If that prints plugins: [
typescript(),
terser({ maxWorkers: 1 })
]I reproduced the same There is a separate version wrinkle: 0.4.0 accepts the worker option at runtime but its typings produced a TS2345 warning in this test. Repeating the test with plugin-terser 0.4.4 succeeded without that warning. Those older releases are reproduction versions, not a recommendation to pin an old dependency indefinitely. Node documents that |
Uh oh!
There was an error while loading. Please reload this page.
Hello, I'm trying to set up a TypeScript project that transpires to ES6 and is minified with terser. I have this setup:
package.json
rollup.config.ts
src/index.ts
The problem is
npm run buildoutputs:And
npm run devjust hangs indefinitely.If I remove the terser plugin from
options.plugins, I get the expected result ofconsole.log("hello");on stdout. Also, as a test, I installed terser globally and was able to successfully run it on my output file (larger than the repro).Is this a configuration problem or a problem within the plugin?
All reactions