Skip to content

Commit

Permalink
fix(types): avoid resolve.exports types for bundling (#12346)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Mar 9, 2023
1 parent 01a0056 commit 6b40f03
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/vite/src/node/packages.ts
@@ -1,6 +1,5 @@
import fs from 'node:fs'
import path from 'node:path'
import type { Exports, Imports } from 'resolve.exports'
import { createDebugger, createFilter, resolveFrom } from './utils'
import type { ResolvedConfig } from './config'
import type { Plugin } from './plugin'
Expand Down Expand Up @@ -28,8 +27,8 @@ export interface PackageData {
main: string
module: string
browser: string | Record<string, string | false>
exports: Exports
imports: Imports
exports: string | Record<string, any> | string[]
imports: Record<string, any>
dependencies: Record<string, string>
}
}
Expand Down

0 comments on commit 6b40f03

Please sign in to comment.