pull/4701/head
Divyansh Singh 5 months ago
parent 6b44e68dfc
commit b7e46a0942

@ -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',

Loading…
Cancel
Save