File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -146,15 +146,15 @@ export default defineNuxtModule<ModuleOptions>({
146
146
// Fix cloudflare:* externals in rollup
147
147
nuxt . options . nitro . rollupConfig = nuxt . options . nitro . rollupConfig || { }
148
148
nuxt . options . nitro . rollupConfig . plugins = ( [ ] as any [ ] ) . concat ( nuxt . options . nitro . rollupConfig . plugins || [ ] )
149
- // nuxt.options.nitro.rollupConfig.plugins.push({
150
- // name: 'nuxthub-rollup-plugin',
151
- // resolveId(id: string) {
152
- // if (id.startsWith('cloudflare:')) {
153
- // return { id, external: true }
154
- // }
155
- // return null
156
- // }
157
- // })
149
+ nuxt . options . nitro . rollupConfig . plugins . push ( {
150
+ name : 'nuxthub-rollup-plugin' ,
151
+ resolveId ( id : string ) {
152
+ if ( id . startsWith ( 'cloudflare:' ) ) {
153
+ return { id, external : true }
154
+ }
155
+ return null
156
+ }
157
+ } )
158
158
// Enable Async Local Storage
159
159
nuxt . options . nitro . experimental = nuxt . options . nitro . experimental || { }
160
160
nuxt . options . nitro . experimental . asyncContext = true
You can’t perform that action at this time.
0 commit comments