Skip to content

Commit 6b40f03

Browse files
authored
fix(types): avoid resolve.exports types for bundling (#12346)
1 parent 01a0056 commit 6b40f03

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/vite/src/node/packages.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import fs from 'node:fs'
22
import path from 'node:path'
3-
import type { Exports, Imports } from 'resolve.exports'
43
import { createDebugger, createFilter, resolveFrom } from './utils'
54
import type { ResolvedConfig } from './config'
65
import type { Plugin } from './plugin'
@@ -28,8 +27,8 @@ export interface PackageData {
2827
main: string
2928
module: string
3029
browser: string | Record<string, string | false>
31-
exports: Exports
32-
imports: Imports
30+
exports: string | Record<string, any> | string[]
31+
imports: Record<string, any>
3332
dependencies: Record<string, string>
3433
}
3534
}

0 commit comments

Comments
 (0)