We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f79bfa4 + 14b2322 commit f08b23dCopy full SHA for f08b23d
examples/msw-react-crud/vite.config.ts
@@ -20,6 +20,21 @@ export default defineConfig({
20
commonjsOptions: {
21
include: [/node_modules/, /packages/],
22
transformMixedEsModules: true
23
+ },
24
+ rollupOptions: {
25
+ // Suppress warnings for optional dynamic imports in runtime
26
+ onwarn(warning, warn) {
27
+ // Ignore unresolved import warnings for @objectstack/driver-memory
28
+ // This is an optional fallback dynamic import in the runtime kernel.
29
+ // It's safe to suppress because the driver is explicitly imported in src/mocks/browser.ts
30
+ if (
31
+ warning.code === 'UNRESOLVED_IMPORT' &&
32
+ warning.message.includes('@objectstack/driver-memory')
33
+ ) {
34
+ return;
35
+ }
36
+ warn(warning);
37
38
}
39
40
});
0 commit comments