mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +00:00
fix: use nitro plugin with explicit mjs extension
This commit is contained in:
parent
3398d5a7d6
commit
1ed3387243
@ -22,7 +22,7 @@ export function initNitro (nuxt: Nuxt) {
|
||||
|
||||
// Add nitro client plugin (to inject $fetch helper)
|
||||
nuxt.hook('app:resolve', (app) => {
|
||||
app.plugins.push({ src: '@nuxt/nitro/dist/runtime/app/nitro.client' })
|
||||
app.plugins.push({ src: require.resolve('@nuxt/nitro/dist/runtime/app/nitro.client.mjs') })
|
||||
})
|
||||
|
||||
// Expose process.env.NITRO_PRESET
|
||||
|
Loading…
Reference in New Issue
Block a user