Transpiles JavaScript/TypeScript code for Smartface platform, enabling cross-platform mobile app development. Current stable version is 6.9.17-beta.5. This package is central to Smartface's build pipeline, converting standard JS/TS to Smartface-compatible code with platform-specific polyfills and module resolution. It differentiates by tightly integrating with Smartface's runtime and providing custom AST transformations. Release cadence is irregular with beta versions for new features.
npm install smartface-transpilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic transpilation of a JavaScript snippet targeting Android platform with CommonJS modules.
Use async/await or .then() when calling transpile.
Replace 'ios' with 'iosx' in platform option.
Set sourceType to 'module' when transpiling ES modules.
Use the Smartface TypeScript plugin or preprocess with tsc.
Review generated code for compatibility if relying on global function declarations.
Use import { transpile } from 'smartface-transpiler'; or import transpile from 'smartface-transpiler'; if using default export.Add platform: 'android' or 'iosx' to options object.
Set sourceType: 'module' in options for ES module code.
Run npm install smartface-transpiler --save or yarn add smartface-transpiler.
No dependency data recorded yet.