Replies: 4 comments 5 replies
-
Could you outline what your problem with unenv is / why you want to disable it? |
Beta Was this translation helpful? Give feedback.
-
sometimes i prefer to not use shims if native node:* implementations are not present |
Beta Was this translation helpful? Give feedback.
-
i fixed it for now: import { builtinModules } from "node:module";
const unprefixed = builtinModules.filter((mod) => !mod.startsWith("node:"));
const builtins = unprefixed.concat(unprefixed.map((mod) => `node:${mod}`));
rollupConfig: {
external: builtins;
} |
Beta Was this translation helpful? Give feedback.
-
It is a very unclear question. For what preset and for what incompatible usecase and what would be alternative if they are not shimmed (unenv kicks-in only when it is needed). Also consider Nitro 2.11 will come with proper native/hybrid Node.js compatibility for cloudflare workers. |
Beta Was this translation helpful? Give feedback.
-
is there a way to disable unenv in nitro?
Beta Was this translation helpful? Give feedback.
All reactions