Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

removes redundant builds when watching #1269

Merged
merged 4 commits into from
May 15, 2020

Conversation

EverlastingBugstopper
Copy link
Contributor

@EverlastingBugstopper EverlastingBugstopper commented May 11, 2020

turns out wranglerjs already implements #1219 (correct me if im wrong @xtuc - we call compiler.watch when we pass --watch=1 to wranglerjs)

the problem was that we would start a wranglerjs process with --watch=1 at the beginning, but then we'd also run a regular blocking wrangler js build after code was changed. this should speed up live reload by at least 2x...? probably? haven't actually benchmarked but this change should make a noticeable difference.

cc @PierBover this is relevant to your interests 馃槃

@xtuc
Copy link
Member

xtuc commented May 11, 2020

Sorry I can't remember. DIdn't you implemented https://github.com/cloudflare/wrangler/blob/master/wranglerjs/index.js#L158-L159?

@EverlastingBugstopper
Copy link
Contributor Author

nah - must have been @xortive. not sure where to even find the docs on using webpack as a library

@PierBover
Copy link

Thanks for the mention!

@EverlastingBugstopper EverlastingBugstopper merged commit 5b3a641 into master May 15, 2020
@delete-merged-branch delete-merged-branch bot deleted the avery/remove-redundant-builds branch May 15, 2020 18:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants