Skip to content

Commit

Permalink
rename vitest condition to 'dual-module-hazard-workaround'
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas committed Jul 29, 2024
1 parent f86e6d0 commit 73adce6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/build-npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ function buildPackageJSON() {
import { defineConfig } from 'vite';
export default defineConfig(async ({ mode }) => {
return {
resolve: mode === 'test' ? { conditions: ['vitest'] } : undefined,
resolve: mode === 'test' ? { conditions: ['dual-module-hazard-workaround'] } : undefined,
};
});
```
*/
vitest: {
'dual-module-hazard-workaround': {
import: base + '/index.js.mjs',
default: base + '/index.js',
},
Expand Down

0 comments on commit 73adce6

Please sign in to comment.