-
Notifications
You must be signed in to change notification settings - Fork 137
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I'm trying to minimize logs and show important ones. I'm using Worker.create
with this bundlerOptions
:
bundlerOptions: {
webpackConfigHook: (config) => {
config.stats = "none";
return config;
},
},
I'm still seeing some webpack output like this:
Workflow modules by path ../../../moose/node_modules/.pnpm/ 287 KiB
Workflow modules by path ../../../moose/node_modules/.pnpm/@[email protected]/node_modules/@tempor...(truncated) 95.3 KiB 23 modules
Workflow modules by path ../../../moose/node_modules/.pnpm/@[email protected]/node_modules/@temp...(truncated) 139 KiB
Workflow ../../../moose/node_modules/.pnpm/@[email protected]/node_modules/@temp...(truncated) 8.38 KiB [built] [code generated]
Workflow ../../../moose/node_modules/.pnpm/@[email protected]/node_modules/@temp...(truncated) 4.09 KiB [built] [code generated]
Workflow + 17 modules
Workflow ../../../moose/node_modules/.pnpm/[email protected]/node_modules/long/umd/index.js 49.8 KiB [built] [code generated]
Workflow ../../../moose/node_modules/.pnpm/[email protected]/node_modules/ms/...(truncated) 3.41 KiB [built] [code generated]
Workflow modules by path ../../../moose/packages/ts-moose-lib/dist/scripts/ 8.01 KiB
Workflow ../../../moose/packages/ts-moose-lib/dist/scripts/workflow-autogenerated-...(truncated) 458 bytes [built] [code generated]
Workflow ../../../moose/packages/ts-moose-lib/dist/scripts/workflow.js 7.56 KiB [built] [code generated]
Workflow __temporal_custom_payload_converter (ignored) 15 bytes [built] [code generated]
Workflow __temporal_custom_failure_converter (ignored) 15 bytes [built] [code generated]
Workflow webpack 5.99.9 compiled successfully in 238 ms
I found that commenting out this line from bundler.ts does the trick:
this.logger[hasError ? 'error' : 'info'](webpackOutput);
Is there another way, preferably through bundlerOptions.webpackConfigHook
to not show those webpack logs?
jtomaszewski
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working