File: transpile-only.mjs

package info (click to toggle)
ts-node 9.1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,632 kB
  • sloc: javascript: 4,285; makefile: 14
file content (7 lines) | stat: -rw-r--r-- 312 bytes parent folder | download
1
2
3
4
5
6
7
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, getFormat, transformSource} = esm.registerAndCreateEsmHooks({transpileOnly: true})