We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01a0056 commit 6b40f03Copy full SHA for 6b40f03
packages/vite/src/node/packages.ts
@@ -1,6 +1,5 @@
1
import fs from 'node:fs'
2
import path from 'node:path'
3
-import type { Exports, Imports } from 'resolve.exports'
4
import { createDebugger, createFilter, resolveFrom } from './utils'
5
import type { ResolvedConfig } from './config'
6
import type { Plugin } from './plugin'
@@ -28,8 +27,8 @@ export interface PackageData {
28
27
main: string
29
module: string
30
browser: string | Record<string, string | false>
31
- exports: Exports
32
- imports: Imports
+ exports: string | Record<string, any> | string[]
+ imports: Record<string, any>
33
dependencies: Record<string, string>
34
}
35
0 commit comments