Registry / wxss-transpiler

wxss-transpiler

JSON →
library1.0.6jsnpmunverified

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.

npm install wxss-transpiler
INSTALL
IMPORT
SIG · WXSS-TRANSPILER
W
wxss-transpiler
javascriptv1.0.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

transpile (default)
const transpile = require('wxss-transpiler')
import transpile from 'wxss-transpiler'
Package only supports CommonJS require. No ESM exports.

Transpile a list of .wxss file paths into compiled CSS strings using CommonJS.

const transpile = require('wxss-transpiler'); const fileList = ['./path/to/style.wxss']; transpile(fileList).then(result => console.log(result));
wxss-transpiler --version
Debug
Known issues
deprecatedPackage is unmaintained. Use native wcsc.exe or Weixin DevTools for production.
fix
Consider using @wechat-miniprogram/wxss-compiler or official tools.
affects: all
breakingNo ESM support; only CommonJS require works.
fix
Use require() instead of import.
affects: >=1.0.0
gotchainput must be array of file paths (strings), not globs or content strings.
fix
Provide explicit file paths in array.
affects: all
Errors
Common errors & fixes
TypeError: transpile is not a function
Attempting to use default import in ESM context or incorrect destructuring.
fix
Use const transpile = require('wxss-transpiler')
Cannot find module 'wxss-transpiler'
Module not installed or typo in package name.
fix
Run npm i wxss-transpiler and ensure node_modules contains it.
Error: ENOENT: no such file or directory, open '...'
Provided file path does not exist or is relative incorrectly.
fix
Use absolute paths or ensure current working directory matches.
Upgrade
Version history
1.0.6latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
wxss-transpiler — npm install wxss-transpiler · libregistry