The isomor-transpiler package (v3.0.4) is the Babel-based transpiler for isomor, a full-stack framework that automatically generates API layers between frontend and backend in a single TypeScript project. Instead of writing REST/GraphQL endpoints, isomor transpiler extracts server-side function calls from client code and creates the necessary communication stubs. This package handles the actual transpilation of .ts/.tsx files, converting decorated functions into fetch calls. It is part of the isomor ecosystem, which aims to reduce boilerplate and enforce type safety across the stack. Release cadence is irregular but maintained. Key differentiator: seamless integration with TypeScript, allowing direct imports of server functions without manual API definition.
npm install isomor-transpilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to use the transpiler to process a TypeScript file, transforming server imports into API calls. Requires Babel core.
Update Node.js to v11 or later. If using older Node, stick with v2.x.
Ensure any server functions used in client code are side-effect free and do not rely on Node built-ins.
Replace transpiler.transform with transpiler.transformSync for synchronous use, or use async APIs.
Enable Babel decorator plugin and set isomor-related options in babel config.
Use inline source maps or verify with tool-specific settings.
npm install isomor-transpiler (and ensure ESM context). If using CommonJS, use dynamic import.
Switch to import syntax: import transpiler from 'isomor-transpiler'
Set sourceType: 'module' in Babel config or pass options to transpiler: { sourceType: 'module' }