KlarkC
KlarkC
Nice reference (js-only): https://github.com/sveltejs/vite-plugin-svelte
Relates: https://github.com/Pauan/rollup-plugin-purs/issues/54
Might be useful for some inspiration: https://github.com/lumihq/purescript-react-basic-dom/tree/main/codegen
If for some reason purs is not compatible, we could use https://github.com/purescript/trypurescript to start a local server and build purescript without dealing with dependency resolution. But the code will be...
Reference on dependency handle: https://github.com/Mateiadrielrafael/esbuild-plugin-purescript
> But the code will be bundled Just remembered that trypurescript does not bundle the produced code (it works with ESM)
I was browsing pursuit docs, and found this type: https://pursuit.purescript.org/packages/purescript-prelude/6.0.0/docs/Type.Proxy#t:Proxy More info about proxies here: https://jordanmartinez.github.io/purescript-jordans-reference-site/content/11-Syntax/03-Type-Level-Programming-Syntax/src/02-Basic-Syntax/04-Proxy-ps.html I bet it can be useful for this problem
New finding: https://pursuit.purescript.org/packages/purescript-literals
I know that babel has [a parser](https://github.com/babel/babel/blob/e7405b99695b4b499a7a9494e4b5ecb1adc2e445/packages/babel-types/src/ast-types/generated/index.ts#L689) ([plugin-vue](https://github.com/vitejs/vite/tree/main/packages/plugin-vue) is using it) . I would use the same solution for the purescript produced javascript, but I don't know if is granted...
Might be useful: https://vitejs.dev/guide/dep-pre-bundling.html