[x] Unit or Functional tests are included 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.
Type: feature
The following has been addressed in the PR:
prettier
as per the readme code style guidelinesDescription:
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