Skip to content

Conversation

mjameswh
Copy link
Contributor

@mjameswh mjameswh commented Jul 15, 2025

These changes have not yet been properly tested

What was changed

  • Add option BundlerOptions.preloadedModules to allow preloading of modules in the v8 execution context. This may be used to reduce runtime cost of loading some modules that have no need of being loaded once per workflow execution, as well as to make it easier to load polyfills. This is an advanced feature. Incorrect usage of this option may result in non-determinism and/or context leaks.
  • Allow bundler's log output to be customized through the webpack config's stats property; that property was inconditionally overriden by the bundler, ignoring changes made through webpackConfigHook. Fixes [Bug] webpackConfigHook doesn't seem to suppress all webpack output #1740.
  • Add condition name temporalio:workflow.
  • Improve reporting of disallowed modules, by reporting errors at call sites (including traces) rather than collecting the set of modules and printing them all at once, afterward.

Should also fix...

@mjameswh mjameswh changed the title feat(workflow): Multiple Improvements to the Workflow Bundler [WIP] feat(workflow): Multiple Improvements to the Workflow Bundler Jul 15, 2025
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.

[Bug] webpackConfigHook doesn't seem to suppress all webpack output
1 participant