mirror of
https://github.com/hanzoai/esbuild.git
synced 2026-09-24 16:58:50 +00:00
10 lines
347 B
JavaScript
10 lines
347 B
JavaScript
#!/usr/bin/env node
|
|
|
|
import { generateBinPath } from "./node-platform"
|
|
const { binPath, isWASM } = generateBinPath()
|
|
if (isWASM) {
|
|
require('child_process').execFileSync('node', [binPath].concat(process.argv.slice(2)), { stdio: 'inherit' })
|
|
} else {
|
|
require('child_process').execFileSync(binPath, process.argv.slice(2), { stdio: 'inherit' })
|
|
}
|