mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 07:05:11 +00:00
fix(nuxt): return null map for empty plugin metadata
This commit is contained in:
parent
595b960fda
commit
68b93222a2
@ -130,7 +130,7 @@ export const RemovePluginMetadataPlugin = (nuxt: Nuxt) => createUnplugin(() => {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
code: 'export default () => {}',
|
code: 'export default () => {}',
|
||||||
map: { mappings: '' },
|
map: null,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -140,7 +140,7 @@ export const RemovePluginMetadataPlugin = (nuxt: Nuxt) => createUnplugin(() => {
|
|||||||
logger.warn(`Plugin \`${plugin.src}\` has no default export and will be ignored at build time. Add \`export default defineNuxtPlugin(() => {})\` to your plugin.`)
|
logger.warn(`Plugin \`${plugin.src}\` has no default export and will be ignored at build time. Add \`export default defineNuxtPlugin(() => {})\` to your plugin.`)
|
||||||
return {
|
return {
|
||||||
code: 'export default () => {}',
|
code: 'export default () => {}',
|
||||||
map: { mappings: '' },
|
map: null,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user