testtest/node_modules/ts-node/esm.mjs
AlexVeeBee 30ce160b8f
Some checks failed
node-js / Test (14.x) (push) Failing after 18s
Did something
2024-02-27 00:32:49 +00:00

9 lines
308 B
JavaScript

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();