mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 00:11:33 +03:00
12 lines
263 B
JavaScript
12 lines
263 B
JavaScript
|
import { create, createEsmHooks } from 'ts-node';
|
||
|
|
||
|
const service = create({
|
||
|
experimentalSpecifierResolution: 'node',
|
||
|
transpileOnly: true,
|
||
|
logError: true,
|
||
|
skipProject: true,
|
||
|
});
|
||
|
const hooks = createEsmHooks(service);
|
||
|
|
||
|
export const resolve = hooks.resolve;
|