mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 10:58:56 +00:00
* Unified event loop * Update WebKit, add test for es-module-lexer * Update README.md * Use async wasm * Explicitly set whether concurrenttask should be deinit'd * Update package.json --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
14 lines
326 B
TypeScript
14 lines
326 B
TypeScript
async function main() {
|
|
const { init, parse } = require("es-module-lexer");
|
|
await init;
|
|
const [imports, exports] = parse("import { a } from 'b'; export const c = 1;");
|
|
console.write(JSON.stringify({ imports, exports }));
|
|
process.exit(42);
|
|
}
|
|
|
|
exports.forceCommonJS = true;
|
|
|
|
if (require.main === module) {
|
|
main();
|
|
}
|