aoc/node_modules/ts-node/esm/transpile-only.mjs

9 lines
333 B
JavaScript
Raw Normal View History

2022-12-03 22:11:42 +00:00
import { fileURLToPath } from 'url';
import { createRequire } from 'module';
const require = createRequire(fileURLToPath(import.meta.url));
/** @type {import('../dist/esm')} */
const esm = require('../dist/esm');
export const { resolve, load, getFormat, transformSource } =
esm.registerAndCreateEsmHooks({ transpileOnly: true });