Julian Gonggrijp opened issue #82: Restructure engine core so that parts can be reused at Julian Gonggrijp / Wontache

Julian Gonggrijp
2024-12-19T01:50:51Z

Right now, Wontache core is implemented as a single module that only exports the compiler function.

For end users, I see no reason to change this. However, for companion features that I might want to develop myself, such as #65 and #81, it would be useful if I could import subcomponents of the compiler and remix them. A plausible way to achieve this, would be to have a shared implementation module that exports all of its guts, a facade module that re-exports only the compiler, and a rollup config that combines both into the module that people actually download from npm.