diff --git a/.changeset/thin-taxis-laugh.md b/.changeset/thin-taxis-laugh.md new file mode 100644 index 000000000..5444881f1 --- /dev/null +++ b/.changeset/thin-taxis-laugh.md @@ -0,0 +1,5 @@ +--- +"@astrojs/react": patch +--- + +Add vite-ignore comment to suppress unknown import warnings diff --git a/packages/integrations/react/server.js b/packages/integrations/react/server.js index 5e4454151..fea6518d8 100644 --- a/packages/integrations/react/server.js +++ b/packages/integrations/react/server.js @@ -53,7 +53,7 @@ async function check(Component, props, children) { async function getNodeWritable() { let nodeStreamBuiltinModuleName = 'stream'; - let { Writable } = await import(nodeStreamBuiltinModuleName); + let { Writable } = await import(/* @vite-ignore */ nodeStreamBuiltinModuleName); return Writable; }