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 2d0f6a6 commit 5dbc0dfCopy full SHA for 5dbc0df
src/prepare/index.ts
@@ -252,8 +252,11 @@ export async function prepare(cwd: string): Promise<void> {
252
} else {
253
// Update existing exports
254
Object.keys(pkgExports).forEach((exportName) => {
255
- if (pkgJson.exports[exportName]) {
256
- pkgJson.exports[exportName] = pkgExports[exportName]
+ pkgJson.exports[exportName] = {
+ // Apply the new export conditions
257
+ ...pkgJson.exports[exportName],
258
+ // Keep the existing export conditions
259
260
}
261
})
262
test/_legacy/exports.test.txt
0 commit comments