Vite ignore unknown import (#4527)
This commit is contained in:
parent
bb71be78db
commit
9adb7cca33
2 changed files with 6 additions and 1 deletions
5
.changeset/thin-taxis-laugh.md
Normal file
5
.changeset/thin-taxis-laugh.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@astrojs/react": patch
|
||||
---
|
||||
|
||||
Add vite-ignore comment to suppress unknown import warnings
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue