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)
14 lines
284 B
JavaScript
Executable File
14 lines
284 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
// Usage:
|
|
// babel-load-options-async.js [filename]
|
|
import { loadOptionsAsync } from "../../lib/index.js";
|
|
|
|
const [, , filename, cwd] = process.argv;
|
|
|
|
(async () => {
|
|
process.stdout.write(
|
|
JSON.stringify(await loadOptionsAsync({ filename, cwd }))
|
|
);
|
|
})();
|