mirror of
https://github.com/hanzoai/ts-node.git
synced 2026-10-30 19:36:25 +00:00
* Add esm to project exports * Convert internal `registerAndCreateEsmHooks` to `createEsmHooks` API * Revert "Add esm to project exports" This reverts commit f53ac63e8dfb2f301ce7885330d306a7716396c2. * Revert esm loaders + add `registerAndCreateEsmHooks` * Add tests for `createEsmHooks` * refactor experimentalEsmLoader into an @internal method on the Service: enableExperimentalEsmLoaderInterop() This avoids consumers needing to pass an @internal flag at service creation time, since we can call the method automatically within createEsmHooks. * lint-fix * Make test case more robust * fix * Fix version check; we do not support ESM loader on less than node 12.16 Co-authored-by: Andrew Bradley <[email protected]>
5 lines
66 B
TypeScript
Executable File
5 lines
66 B
TypeScript
Executable File
export function abc() {
|
|
let unusedVar: string;
|
|
return true;
|
|
}
|