mirror of
https://github.com/withastro/astro.git
synced 2025-02-10 22:38:53 -05:00
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() {
|
async function getNodeWritable() {
|
||||||
let nodeStreamBuiltinModuleName = 'stream';
|
let nodeStreamBuiltinModuleName = 'stream';
|
||||||
let { Writable } = await import(nodeStreamBuiltinModuleName);
|
let { Writable } = await import(/* @vite-ignore */ nodeStreamBuiltinModuleName);
|
||||||
return Writable;
|
return Writable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue