Skip to content

oxc-node

This plugin is always enabled.

This plugin adds argument parsing for the oxnode binary. Configuration:

positional: (parsed ) => {
if (parsed.eval !== undefined || parsed.print !== undefined || parsed.run !== undefined) return [];
const scripts = parsed.test ? parsed._ : parsed._.slice(parsed._[0] === 'inspect' ? 1 : 0).slice(0, 1);
return scripts.filter(script => !String(script).startsWith('-'));
}
nodeImportArgs: true
string: ["allow-fs-read", "allow-fs-write", "build-snapshot-config", "conditions", "cpu-prof-dir", "cpu-prof-interval", "cpu-prof-name", "debug-port", "diagnostic-dir", "disable-proto", "disable-warning", "dns-result-order", "env-file", "env-file-if-exists", "eval", "experimental-config-file", "experimental-default-config-file", "experimental-package-map", "experimental-sea-config", "experimental-test-isolation", "experimental-test-tag-filter", "heap-prof-dir", "heap-prof-interval", "heap-prof-name", "heapsnapshot-near-heap-limit", "heapsnapshot-signal", "icu-data-dir", "input-type", "inspect-port", "inspect-publish-uid", "localstorage-file", "max-http-header-size", "max-old-space-size-percentage", "network-family-autoselection-attempt-timeout", "openssl-config", "print", "redirect-warnings", "report-dir", "report-directory", "report-filename", "report-signal", "run", "secure-heap", "secure-heap-min", "security-revert", "security-reverts", "snapshot-blob", "stack-trace-limit", "test-concurrency", "test-coverage-branches", "test-coverage-exclude", "test-coverage-functions", "test-coverage-include", "test-coverage-lines", "test-global-setup", "test-isolation", "test-name-pattern", "test-random-seed", "test-reporter", "test-reporter-destination", "test-rerun-failures", "test-shard", "test-skip-pattern", "test-timeout", "title", "tls-cipher-list", "tls-keylog", "trace-event-categories", "trace-event-file-pattern", "trace-require-module", "unhandled-rejections", "use-largepages", "v8-pool-size", "watch-kill-signal", "watch-path", "exclude", "include", "tsconfig"]
alias: {"conditions": ["C"], "eval": ["e"], "print": ["p"]}
boolean: true
stopEarly: true
resolveInputs: (parsed ) => {
const reporters = parsed['test-reporter'];
if (!reporters) return [];
const inputs = [];
for (const reporter of Array.isArray(reporters) ? reporters : [reporters]) {
if (typeof reporter === 'string' && reporter && !builtInReporters.has(reporter)) inputs.push(toModule(reporter));
}
return inputs;
}
args: (args ) => (args[0] === 'watch' ? args.slice(1) : args)

The configuration was generated from source code. Also see Script Parser.

This page was generated from the oxc-node plugin source code.

ISC License © 2026Lars Kappert