This was an attempt at #1286, but the Transpiler doesn't actually seem to work as desired (need to manually specify tsconfig, and even then, it doesn't seem to add the implicit import, and the result behaves weird if the module has no import/export). But the cleanup was a moderate improvement, so I'm submitting that:
Modify example to include TypeScript type notation, for testing
Use Bun's file interface instead of Node compatibility layer
Use braced object notation for cleaner methods
Commented out code for manual transpilation of JSX (doesn't work yet)
This was an attempt at #1286, but the Transpiler doesn't actually seem to work as desired (need to manually specify
tsconfig
, and even then, it doesn't seem to add the implicitimport
, and the result behaves weird if the module has noimport
/export
). But the cleanup was a moderate improvement, so I'm submitting that: