mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
* Fix `import { types } from "@babel/core"` with native ESM
* Avoid default `@babel/core` import in tests (not available in ESM)
8 lines
178 B
JavaScript
Executable File
8 lines
178 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
// Usage:
|
|
// babel-compile-async.js [filename]
|
|
import { transformSync } from "../../lib/index.js";
|
|
|
|
process.stdout.write(JSON.stringify(transformSync("")));
|