Skip to content

Commit

Permalink
test(condition): ensure module is included in the default conditions
Browse files Browse the repository at this point in the history
This causes these tests to fail in vite 6 without this change since we were passing ['node'] and overwriting the defaults which were essentially ['module', 'node', 'development|production'] before.
  • Loading branch information
thebanjomatic committed Jan 15, 2025
1 parent c0a7cb7 commit 47c383f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/config/fixtures/conditions-subpackage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
"type": "module",
"exports": {
".": {
"custom": "./custom.js",
"development": "./development.js",
"production": "./production.js",
"default": "./default.js"
"module": {
"custom": "./custom.js",
"development": "./development.js",
"production": "./production.js",
"default": "./default.js"
}
}
}
}

0 comments on commit 47c383f

Please sign in to comment.