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.
vitest
'dual-module-hazard-workaround'
1 parent f86e6d0 commit 73adce6Copy full SHA for 73adce6
resources/build-npm.js
@@ -148,12 +148,12 @@ function buildPackageJSON() {
148
import { defineConfig } from 'vite';
149
export default defineConfig(async ({ mode }) => {
150
return {
151
- resolve: mode === 'test' ? { conditions: ['vitest'] } : undefined,
+ resolve: mode === 'test' ? { conditions: ['dual-module-hazard-workaround'] } : undefined,
152
};
153
});
154
```
155
*/
156
- vitest: {
+ 'dual-module-hazard-workaround': {
157
import: base + '/index.js.mjs',
158
default: base + '/index.js',
159
},
0 commit comments