Skip to content

refactor: Moves WorkerPool creation to apply()#26

Merged
developit merged 3 commits into
developit:mainfrom
rschristian:fix/worker-pool
Jun 6, 2022
Merged

refactor: Moves WorkerPool creation to apply()#26
developit merged 3 commits into
developit:mainfrom
rschristian:fix/worker-pool

Conversation

@rschristian

@rschristian rschristian commented Feb 6, 2022

Copy link
Copy Markdown
Contributor

Issue came from testing out in preact-cli.

While CLI's setup is pretty niche, this issue can arise if opimize-plugin is initialized but then removed from the Webpack config (like if a user strips it out using their preact.config.js). This seems to lock up the Webpack build, never allowing it to complete. Moving pool creation to apply() when Webpack actually installs the plugin seems to correct the issue.

@developit developit left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, didn't see this before publishing 1.2.0

@developit developit merged commit 180359d into developit:main Jun 6, 2022
@rschristian rschristian deleted the fix/worker-pool branch June 6, 2022 02:33
@developit

Copy link
Copy Markdown
Owner

Released in 1.3.0

@rschristian

Copy link
Copy Markdown
Contributor Author

Cheers, thanks!

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.

2 participants