Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ export async function createVitestConfigPlugin(
noDiscovery: true,
include: options.optimizeDepsInclude,
},
resolve: {
mainFields: ['es2020', 'module', 'main'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that this contains some values that could change over time (e.g. es2020), can we decrease the risk of getting out of sync somehow?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those are there for older APF packages. We stopped using that in newer APF revisions. It's just default now with a single code variant.

conditions: ['es2015', 'es2020', 'module'],
},
};

const { optimizeDeps, resolve } = config;
Expand Down
Loading