arthur-fontaine / agrume

Server-side functions in your frontend for any tool. Easy, customizable and type-safe. Made for frontend developers.
https://agrume.js.org
MIT License
9 stars 0 forks source link

New feature: support for .agrume.ts files #96

Open arthur-fontaine opened 2 months ago

arthur-fontaine commented 2 months ago

The motivation is to improve security for frameworks that don't support tree-shaking. By moving the server code in separate files, we ensure that there will be no server code leaking. The .agrume.ts files will be resolved to the fetch client directly.

In addition to .agrume.ts files, we should support .agrume.js, .agrume.mjs, .agrume.cjs, .agrume.mts, .agrume.cts.