mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-21 13:15:12 +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 {
|
||||
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.`)
|
||||
return {
|
||||
code: 'export default () => {}',
|
||||
map: { mappings: '' },
|
||||
map: null,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user