aboutsummaryrefslogtreecommitdiff
path: root/test/js/third_party/es-module-lexer/index.ts
blob: f11a849bc9760027ffbd4a82078ed3eea1d93455 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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();
}