8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36cf5f2 commit 39bc7ecCopy full SHA for 39bc7ec
src/module.ts
@@ -204,6 +204,11 @@ export default defineNuxtModule<ModuleOptions>({
204
if (!nuxt.options.nitro.unenv.external.includes('node:process')) {
205
nuxt.options.nitro.unenv.external.push('node:process')
206
}
207
+ // Add safe-buffer as alias to node:buffer
208
+ nuxt.options.nitro.unenv.alias ||= {}
209
+ if (!nuxt.options.nitro.unenv.alias['safe-buffer']) {
210
+ nuxt.options.nitro.unenv.alias['safe-buffer'] = 'node:buffer'
211
+ }
212
213
// Add the env middleware
214
nuxt.options.nitro.handlers ||= []
0 commit comments