Skip to content

Commit

Permalink
fix(config): don't resolve by module field (#10347) (#10360)
Browse files Browse the repository at this point in the history
* fix(config): don't resolve by module field (#10347)

* chore: fix build error

Co-authored-by: 翠 / green <[email protected]>
  • Loading branch information
bluwy and sapphi-red authored Oct 6, 2022
1 parent 31f8ea6 commit f756e84
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ import {
DEFAULT_ASSETS_RE,
DEFAULT_CONFIG_FILES,
DEFAULT_EXTENSIONS,
DEFAULT_MAIN_FIELDS,
ENV_ENTRY
} from './constants'
import type { InternalResolveOptions, ResolveOptions } from './plugins/resolve'
Expand Down Expand Up @@ -964,7 +963,7 @@ async function bundleConfigFile(
isRequire: !isESM,
preferRelative: false,
tryIndex: true,
mainFields: DEFAULT_MAIN_FIELDS,
mainFields: [],
conditions: [],
dedupe: [],
extensions: DEFAULT_EXTENSIONS,
Expand Down

0 comments on commit f756e84

Please sign in to comment.