summaryrefslogtreecommitdiff
path: root/test/test-utils.js
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@matthewphillips.info> 2021-03-18 16:39:17 -0400
committerGravatar GitHub <noreply@github.com> 2021-03-18 16:39:17 -0400
commitd27bd74b055b23a6eb455969755b3ee7f687fd61 (patch)
tree2905ac29ca5bc1f9337799b08182d2daa9f086ae /test/test-utils.js
parent5661b289149761106585abe7695f3ccc2a7a4045 (diff)
downloadastro-d27bd74b055b23a6eb455969755b3ee7f687fd61.tar.gz
astro-d27bd74b055b23a6eb455969755b3ee7f687fd61.tar.zst
astro-d27bd74b055b23a6eb455969755b3ee7f687fd61.zip
Refactor to enable optimizer modules (#8)
* Refactor to enable optimizer modules This refactors HMX compilation into steps: 1. Parse - Turn HMX string into an AST. 2. Optimize - Walk the AST making modifications. 3. Codegen - Turn the AST into hyperscript function calls. There's still more logic in (3) than we probably want. The nice there here is it gives a Visitor API that you can implement to do optimizations. See src/optimize/styles.ts for an example. * Allow multiple visitors per optimizer
Diffstat (limited to 'test/test-utils.js')
0 files changed, 0 insertions, 0 deletions