dillon1000/react

Commit

[be] Clean up public exports

Cleans up the public exports for the package itself: 

* `parseFunctions()` was only used in playground, so this moves the definition 
there. I had to update playground's dependencies to ensure the babel version 
matched. 

* Flattens away the `HIR` const in the export, and exports just 4 functions all 
at the top-level: `run()`, `compile()`, `printHIR()`, and 
`printReactiveFunction()`. 

This will make it very easy to split the core compiler into a separate package 
from the babel plugin, though i'm not sure it's worth doing that (yet).
Browse files
Changed paths7 files
First-parent comparison
M compiler/forget/packages/playground/components/Editor/Output.tsx ModifiedM compiler/forget/packages/playground/package.json ModifiedM compiler/forget/packages/playground/yarn.lock ModifiedM compiler/forget/src/HIR/PrintHIR.ts ModifiedM compiler/forget/src/HIR/index.ts ModifiedM compiler/forget/src/Utils/logger.ts ModifiedM compiler/forget/src/index.ts Modified
Patch

Files changed

Rendering syntax-highlighted changes…