{"id":26661,"library":"wxss-transpiler","title":"wxss-transpiler","description":"Port of wcsc.exe to JavaScript for transpiling WeChat .wxss files to CSS. Version 1.0.6 (last updated ~2018) compiles lists of .wxss files to CSS strings via Node.js. Lightweight alternative to wcc/wcsc native binaries, works cross-platform (macOS, Linux, Windows). No active maintenance or release cadence; last commit ~7 years ago.","status":"abandoned","version":"1.0.6","language":"javascript","source_language":"en","source_url":"https://github.com/IOriens/wxss-transpiler","tags":["javascript","wxss","wcsc","compiler","transpiler"],"install":[{"cmd":"npm install wxss-transpiler","lang":"bash","label":"npm"},{"cmd":"yarn add wxss-transpiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add wxss-transpiler","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package only supports CommonJS require. No ESM exports.","wrong":"import transpile from 'wxss-transpiler'","symbol":"transpile (default)","correct":"const transpile = require('wxss-transpiler')"}],"quickstart":{"code":"const transpile = require('wxss-transpiler');\nconst fileList = ['./path/to/style.wxss'];\ntranspile(fileList).then(result => console.log(result));","lang":"javascript","description":"Transpile a list of .wxss file paths into compiled CSS strings using CommonJS."},"warnings":[{"fix":"Consider using @wechat-miniprogram/wxss-compiler or official tools.","message":"Package is unmaintained. Use native wcsc.exe or Weixin DevTools for production.","severity":"deprecated","affected_versions":"all"},{"fix":"Use require() instead of import.","message":"No ESM support; only CommonJS require works.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Provide explicit file paths in array.","message":"input must be array of file paths (strings), not globs or content strings.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use const transpile = require('wxss-transpiler')","cause":"Attempting to use default import in ESM context or incorrect destructuring.","error":"TypeError: transpile is not a function"},{"fix":"Run npm i wxss-transpiler and ensure node_modules contains it.","cause":"Module not installed or typo in package name.","error":"Cannot find module 'wxss-transpiler'"},{"fix":"Use absolute paths or ensure current working directory matches.","cause":"Provided file path does not exist or is relative incorrectly.","error":"Error: ENOENT: no such file or directory, open '...'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}