transpile-only.mjs 312 B

1234567
  1. import {fileURLToPath} from 'url'
  2. import {createRequire} from 'module'
  3. const require = createRequire(fileURLToPath(import.meta.url))
  4. /** @type {import('../dist/esm')} */
  5. const esm = require('../dist/esm')
  6. export const {resolve, getFormat, transformSource} = esm.registerAndCreateEsmHooks({transpileOnly: true})