Registry / devops / app-transpiler

app-transpiler

JSON →
library1.0.13jsnpmunverified

app-transpiler is a build tool for transpiling JavaScript/TypeScript applications with a focus on simplicity and fast iteration. The current stable version is 1.0.13, released on an ad-hoc basis with no fixed cadence. It differentiates itself by offering zero-config setup and out-of-the-box support for JSX and modern ECMAScript features, targeting both Node.js and browser environments.

npm install app-transpiler
INSTALL
IMPORT
SIG · APP-TRANSPILER
A
app-transpiler
devopsjavascriptv1.0.13
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

transpile
import { transpile } from 'app-transpiler';
const transpile = require('app-transpiler');
app-transpiler is ESM-only since v1.0.0.
createConfig
import { createConfig } from 'app-transpiler';
const createConfig = require('app-transpiler').createConfig;
Named export, not default.
default
import transpiler from 'app-transpiler';
import { default } from 'app-transpiler';
Default export represents the main transpiler function.

Transpile a simple arrow function with template literals to ES5-compatible code.

import { transpile } from 'app-transpiler'; const code = ` const greet = (name) => { console.log(`Hello, ${name}!`); }; greet('World');`; const result = await transpile(code, { presets: ['@babel/preset-env'] }); console.log(result.code);
app-transpiler --version
Debug
Known issues
gotchaThe package is ESM-only; require() will throw an error.
fix
Use import syntax instead of require().
affects: >=1.0.0
deprecatedThe 'transpile' function's callback parameter is deprecated.
fix
Use the promise-based API: await transpile(...) or transpile(...).then(...).
affects: >=1.0.5
gotchaThe package does not include TypeScript type definitions.
fix
Install @types/app-transpiler from DefinitelyTyped or create a declaration file manually.
affects: *
Errors
Common errors & fixes
Error: Cannot find module 'app-transpiler'
Package not installed or incorrect import path.
fix
Run 'npm install app-transpiler' and ensure the import statement is correct.
SyntaxError: Unexpected token 'export'
Using require() with an ESM-only package.
fix
Change require() to import syntax or use dynamic import.
TypeError: transpile is not a function
Wrong import style (e.g., default import used as object).
fix
Use named import: import { transpile } from 'app-transpiler'.
Upgrade
Version history
1.0.13latest on npm
Audit
Dependencies
@babel/corerequiredrequired for transpilation
@babel/preset-envrequiredrequired for environment-specific transpilation
Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources
app-transpiler — npm install app-transpiler · libregistry