{"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,"search_vec":"'1.0.6':17 '2018':20 '7':52 'activ':45 'ago':54 'altern':32 'binari':36 'cadenc':49 'commit':51 'compil':21,58 'cross':39 'cross-platform':38 'css':15,27 'file':13,25 'javascript':8,55 'last':18,50 'lightweight':31 'linux':42 'list':22 'maco':41 'mainten':46 'nativ':35 'node.js':30 'platform':40 'port':4 'releas':48 'string':28 'transpil':3,10,59 'updat':19 'version':16 'via':29 'wcc/wcsc':34 'wcsc':57 'wcsc.exe':6 'wechat':11 'window':43 'work':37 'wxss':2,12,24,56 'wxss-transpil':1 'year':53","created_at":"2026-05-01T13:51:08.173180+00:00","updated_at":"2026-05-01T13:51:08.173180+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"wxss-transpiler","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/IOriens/wxss-transpiler","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/wxss-transpiler","openapi_spec":null,"status_page":null,"smithery":null,"categories":[],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-05-01","next_check":"2026-07-30","install_tag":null}}