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 31f8ea6 commit f756e84Copy full SHA for f756e84
packages/vite/src/node/config.ts
@@ -44,7 +44,6 @@ import {
44
DEFAULT_ASSETS_RE,
45
DEFAULT_CONFIG_FILES,
46
DEFAULT_EXTENSIONS,
47
- DEFAULT_MAIN_FIELDS,
48
ENV_ENTRY
49
} from './constants'
50
import type { InternalResolveOptions, ResolveOptions } from './plugins/resolve'
@@ -964,7 +963,7 @@ async function bundleConfigFile(
964
963
isRequire: !isESM,
965
preferRelative: false,
966
tryIndex: true,
967
- mainFields: DEFAULT_MAIN_FIELDS,
+ mainFields: [],
968
conditions: [],
969
dedupe: [],
970
extensions: DEFAULT_EXTENSIONS,
0 commit comments