fix(vite): importing node:* builtins (#3245)
This commit is contained in:
@@ -102,6 +102,13 @@ export function deno(): Plugin {
|
||||
ResolutionMode.Import,
|
||||
);
|
||||
|
||||
if (resolved.startsWith("node:")) {
|
||||
return {
|
||||
id: resolved,
|
||||
external: true,
|
||||
};
|
||||
}
|
||||
|
||||
if (original === resolved) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user