UNPKG

@rspack/cli

Version:
26 lines (20 loc) 551 B
#!/usr/bin/env node const nodeModule = require("node:module"); // enable on-disk code caching of all modules loaded by Node.js // requires Nodejs >= 22.8.0 const { enableCompileCache } = nodeModule; if (enableCompileCache) { try { enableCompileCache(); } catch { // ignore errors } } // make it easier to identify the process via activity monitor or other tools process.title = "rspack-node"; const { RspackCLI } = require("../dist/index"); async function runCLI() { const cli = new RspackCLI(); await cli.run(process.argv); } runCLI();