AFFiNE/packages/backend/server/scripts/loader.js
2024-07-19 11:31:01 +08:00

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;