Replies: 2 comments 1 reply
|
Yes — TypeScript is the primary, intended way to author plugins, and there's a proper watch/compile-on-save flow for it. The bun instatic-plugin initThat scaffolds a TypeScript project authored around bun instatic-plugin devwatches your source files, rebuilds on every change, and syncs the output straight into the running CMS's The reason plugins ship as compiled JS rather than running TS directly: each server plugin executes inside a sandboxed QuickJS-WASM VM (no Node, no Bun, no filesystem/network by default) — Docs: |
|
I was wondering about this too. TypeScript support would be a really useful addition, especially if Instatic could compile Even a simple setup using |
Uh oh!
There was an error while loading. Please reload this page.
Does Instatic have TypeScript support?
I saw everywhere how to install npm packages, add js code... but nothing about TS support.
Could be nice to write TS and then compile it to JS on save.
All reactions