-
-
Notifications
You must be signed in to change notification settings - Fork 544
Closed
Description
Continuing the discussion from #1007.
CommonJS has the file shortcut ts-node/register/transpile-only for installing the TypeScript loader without type checking. An ESM loader which has the equivalent functionality should be created and exposed to the end user.
Line 7 in ce7c323
| export const {resolve, getFormat, transformSource} = esm.registerAndCreateEsmHooks() |
The code from esm.mjs can be duplicated in a new file, but with the transpileOnly flag set:
export const {resolve, getFormat, transformSource} = esm.registerAndCreateEsmHooks({transpileOnly: true})What should the loader filename look like? There is ts-node/esm.mjs, should it be ts-node/esm/transpile-only.mjs?
Metadata
Metadata
Assignees
Labels
No labels