Skip to content

Commit 73adce6

Browse files
committed
rename vitest condition to 'dual-module-hazard-workaround'
1 parent f86e6d0 commit 73adce6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/build-npm.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,12 @@ function buildPackageJSON() {
148148
import { defineConfig } from 'vite';
149149
export default defineConfig(async ({ mode }) => {
150150
return {
151-
resolve: mode === 'test' ? { conditions: ['vitest'] } : undefined,
151+
resolve: mode === 'test' ? { conditions: ['dual-module-hazard-workaround'] } : undefined,
152152
};
153153
});
154154
```
155155
*/
156-
vitest: {
156+
'dual-module-hazard-workaround': {
157157
import: base + '/index.js.mjs',
158158
default: base + '/index.js',
159159
},

0 commit comments

Comments
 (0)