{"id":24913,"library":"app-transpiler","title":"app-transpiler","description":"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.","status":"active","version":"1.0.13","language":"javascript","source_language":"en","source_url":"https://github.com/aleciurleo/app-transpiler","tags":["javascript"],"install":[{"cmd":"npm install app-transpiler","lang":"bash","label":"npm"},{"cmd":"yarn add app-transpiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add app-transpiler","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"required for transpilation","package":"@babel/core","optional":false},{"reason":"required for environment-specific transpilation","package":"@babel/preset-env","optional":false}],"imports":[{"note":"app-transpiler is ESM-only since v1.0.0.","wrong":"const transpile = require('app-transpiler');","symbol":"transpile","correct":"import { transpile } from 'app-transpiler';"},{"note":"Named export, not default.","wrong":"const createConfig = require('app-transpiler').createConfig;","symbol":"createConfig","correct":"import { createConfig } from 'app-transpiler';"},{"note":"Default export represents the main transpiler function.","wrong":"import { default } from 'app-transpiler';","symbol":"default","correct":"import transpiler from 'app-transpiler';"}],"quickstart":{"code":"import { transpile } from 'app-transpiler';\n\nconst code = `\nconst greet = (name) => {\n  console.log(`Hello, ${name}!`);\n};\ngreet('World');`;\n\nconst result = await transpile(code, { presets: ['@babel/preset-env'] });\nconsole.log(result.code);","lang":"javascript","description":"Transpile a simple arrow function with template literals to ES5-compatible code."},"warnings":[{"fix":"Use import syntax instead of require().","message":"The package is ESM-only; require() will throw an error.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use the promise-based API: await transpile(...) or transpile(...).then(...).","message":"The 'transpile' function's callback parameter is deprecated.","severity":"deprecated","affected_versions":">=1.0.5"},{"fix":"Install @types/app-transpiler from DefinitelyTyped or create a declaration file manually.","message":"The package does not include TypeScript type definitions.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'npm install app-transpiler' and ensure the import statement is correct.","cause":"Package not installed or incorrect import path.","error":"Error: Cannot find module 'app-transpiler'"},{"fix":"Change require() to import syntax or use dynamic import.","cause":"Using require() with an ESM-only package.","error":"SyntaxError: Unexpected token 'export'"},{"fix":"Use named import: import { transpile } from 'app-transpiler'.","cause":"Wrong import style (e.g., default import used as object).","error":"TypeError: transpile is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}