We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ee54b0 commit d91645cCopy full SHA for d91645c
examples/msw-react-crud/vite.config.ts
@@ -20,6 +20,20 @@ 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 dynamic import in the runtime that gets resolved at build time
29
+ if (
30
+ warning.code === 'UNRESOLVED_IMPORT' &&
31
+ warning.message.includes('@objectstack/driver-memory')
32
+ ) {
33
+ return;
34
+ }
35
+ warn(warning);
36
37
}
38
39
});
0 commit comments