diff --git a/rollup.config.ts b/rollup.config.ts index c4e930ab..6bf7ff1b 100644 --- a/rollup.config.ts +++ b/rollup.config.ts @@ -65,13 +65,13 @@ const dtsNode = dts({ tsconfig: 'src/node/tsconfig.json' }) -// const originalResolveId = dtsNode.resolveId +const originalResolveId = dtsNode.resolveId -// dtsNode.resolveId = async function (source, importer) { -// const res = await (originalResolveId as Function).call(this, source, importer) -// if (res?.id) res.id = await fs.realpath(res.id) -// return res -// } +dtsNode.resolveId = async function (source, importer) { + const res = await (originalResolveId as Function).call(this, source, importer) + if (res?.id) res.id = await fs.realpath(res.id) + return res +} const nodeTypes: RollupOptions = { input: 'src/node/index.ts',