Anber / wyw-in-js

MIT License
191 stars 8 forks source link

feat(transform): optimised literal processing #59

Closed Anber closed 4 months ago

Anber commented 4 months ago

Motivation

preeval does a lot of excess work with attempts to resolve processors for every identifier in a code.

Summary

The logic has been inverted: first, we try to resolve processors for every imported identifier and then apply resolved processors only to references of related identifiers.

changeset-bot[bot] commented 4 months ago

🦋 Changeset detected

Latest commit: 74cbc8ae292ecb385cd349bd8d1457e0003d673b

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR