mirror of
https://github.com/withastro/astro.git
synced 2025-01-27 22:19:04 -05:00
The web framework for content-driven websites. ⭐️ Star to support our work!
d27bd74b05
* 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 |
||
---|---|---|
src | ||
.eslintrc.cjs | ||
.gitignore | ||
.prettierrc.json | ||
astro.mjs | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
snowpack-plugin.cjs | ||
tsconfig.json |