{"id":25909,"library":"lunet-transpiler","title":"Lunet Transpiler","description":"The Lunet Transpiler is a build tool for the Lunet web frontend library (version 0.0.8, pre-release). It transpiles Lunet components or templates into standard JavaScript/HTML/CSS for browser consumption. Key differentiator: designed specifically for the Lunet ecosystem, offering custom syntax and optimizations not available in general-purpose transpilers like Babel. Release cadence is unstable as it is still in early development; breaking changes are expected between minor versions. Not suitable for production use yet.","status":"active","version":"0.0.8","language":"javascript","source_language":"en","source_url":"https://github.com/TNTSuperMan/lunet","tags":["javascript"],"install":[{"cmd":"npm install lunet-transpiler","lang":"bash","label":"npm"},{"cmd":"yarn add lunet-transpiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add lunet-transpiler","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM-only; no CommonJS support.","wrong":"const transpile = require('lunet-transpiler')","symbol":"transpile","correct":"import { transpile } from 'lunet-transpiler'"},{"note":"Named export for compiling full components.","symbol":"compile","correct":"import { compile } from 'lunet-transpiler'"},{"note":"Default export is the main transpiler function; namespace import imports an empty object.","wrong":"import * as transpiler from 'lunet-transpiler'","symbol":"default","correct":"import transpiler from 'lunet-transpiler'"}],"quickstart":{"code":"import { transpile } from 'lunet-transpiler';\n\nconst input = `\n<template>\n  <div>{message}</div>\n</template>\n<script>\nexport default {\n  data() {\n    return { message: 'Hello, Lunet!' };\n  }\n}\n</script>`;\n\nconst output = transpile(input, { module: true, sourceMap: false });\nconsole.log(output.code);","lang":"javascript","description":"Transpiles a simple Lunet component template into JavaScript code, demonstrating basic usage of the transpile function."},"warnings":[{"fix":"Pin to a specific version and monitor changelog.","message":"API may change without notice in pre-1.0 versions","severity":"breaking","affected_versions":">=0.0.1 <1.0.0"},{"fix":"Ensure 'lunet' core library is installed as a peer dependency.","message":"Missing dependency 'lunet' at runtime if not using bundled output","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":"npm install lunet","cause":"lunet-transpiler requires lunet core to be installed.","error":"Error: Cannot find module 'lunet'"},{"fix":"Use import { transpile } from 'lunet-transpiler'","cause":"Incorrect import: default vs named export.","error":"TypeError: transpile is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}