Skip to content

Upgrade loop-breaker and load it asynchronously#1383

Merged
outoftime merged 2 commits intopopcodeorg:masterfrom
outoftime:upgrade-loop-breaker
Mar 4, 2018
Merged

Upgrade loop-breaker and load it asynchronously#1383
outoftime merged 2 commits intopopcodeorg:masterfrom
outoftime:upgrade-loop-breaker

Conversation

@outoftime
Copy link
Copy Markdown
Contributor

@outoftime outoftime commented Mar 4, 2018

Upgrades loop-breaker, which is itself upgraded to point at the latest version of recast, which fixes a bug with parsing certain comment nodes.

Also, loads loop-breaker asynchronously and only if needed, meaning recast and esprima are no longer part of the main bundle.

Fixes #1192

Upgrades loop-breaker, which is itself upgraded to point at the latest
version of `recast`, which fixes a bug with parsing certain comment
nodes.
@outoftime outoftime force-pushed the upgrade-loop-breaker branch 3 times, most recently from 24be74c to a77d6fe Compare March 4, 2018 21:45
Previously `loop-breaker` and its `recast` and `esprima` dependencies
were loaded as part of the main bundle, which is entirely unnecessary!
We only need these libraries at all if there is JavaScript to compile
into the project. So, load `loop-breaker` asynchronously, and only if
the project’s JavaScript source is non-empty.
@outoftime outoftime force-pushed the upgrade-loop-breaker branch from a77d6fe to 56b4439 Compare March 4, 2018 23:22
@outoftime outoftime merged commit 43316a3 into popcodeorg:master Mar 4, 2018
@outoftime outoftime deleted the upgrade-loop-breaker branch March 4, 2018 23:38
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.

Project won’t load

1 participant