dojo / webpack-contrib

Plugins and loaders for webpack used with Dojo
Other
4 stars 19 forks source link

Run BTR Blocks in a separate worker thread #269

Closed agubler closed 4 years ago

agubler commented 4 years ago

Type: feature

The following has been addressed in the PR:

Description:

Build time render blocks are executed in node, currently the same context as the rest of the build process. This is potentially unpredictable as it can impact the behaviour of blocks inadvertently, to solve this each block is executed in a separate worker thread ensuring that they have a fresh, isolated context.

Note: The minimum supported node version for worker threads is v12, so the same is true of build time rendering.

Resolves #267