Files
babel/packages/babel-core/test/fixtures/babel-compile-async.mjs
Nicolò RibaudoandGitHub d63035ce2d Fix import { types } from "@babel/core" with native ESM (#14663)
* Fix `import { types } from "@babel/core"` with native ESM

* Avoid default `@babel/core` import in tests (not available in ESM)
2022-06-19 00:39:31 +02:00

10 lines
209 B
JavaScript
Executable File

#!/usr/bin/env node
// Usage:
// babel-compile-async.js [filename]
import { transformAsync } from "../../lib/index.js";
(async () => {
process.stdout.write(JSON.stringify(await transformAsync("")));
})();