Skip to content

Commit f08b23d

Browse files
authored
Merge pull request #316 from objectstack-ai/copilot/update-action-step-in-github
2 parents f79bfa4 + 14b2322 commit f08b23d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

examples/msw-react-crud/vite.config.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,21 @@ export default defineConfig({
2020
commonjsOptions: {
2121
include: [/node_modules/, /packages/],
2222
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+
}
2338
}
2439
}
2540
});

0 commit comments

Comments
 (0)