xhs mp pack (v2.1.6) is a CLI compiler core for mini-program bundling, optimized for 小红书 (Xiaohongshu) platform. It offers fast compilation with TypeScript definitions, supporting modern JavaScript and CSS preprocessing. Released as a private/internal tool, it relies on native Node.js modules and provides no fallback for browser environments. Key differentiators include tight integration with Xiaohongshu's mini-program ecosystem and minimal external dependencies.
npm install xhs-mp-packNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic build invocation with input/output paths and minification enabled.
Use ES modules (import syntax) or convert to ESM.
Upgrade Node.js to >=14.
Replace `compile()` with `build()`.
Change to import syntax or set type: module in package.json.
Use correct named import syntax: import { build } from 'xhs-mp-pack'.Run npm install xhs-mp-pack and ensure it's in node_modules.
No dependency data recorded yet.