{"library":"smartface-transpiler","title":"Smartface Transpiler","description":"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.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install smartface-transpiler"],"cli":null},"imports":["import { transpile } from 'smartface-transpiler'","import type { TranspileOptions } from 'smartface-transpiler'","import transpile from 'smartface-transpiler'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { transpile } from 'smartface-transpiler';\n\nconst sourceCode = `\nconst x = 1;\nconsole.log(x);\n`;\n\nconst result = transpile(sourceCode, {\n  platform: 'android',\n  moduleType: 'commonjs',\n  sourceType: 'script',\n});\n\nconsole.log(result.code);\nconsole.log(result.map);","lang":"typescript","description":"Shows basic transpilation of a JavaScript snippet targeting Android platform with CommonJS modules.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}