mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +00:00
fix(nitro): ensure that nitro runtime is not externalized (#121)
This commit is contained in:
parent
2a2c4d5e46
commit
813df279ec
@ -26,7 +26,8 @@ export function externals (opts: NodeExternalsOptions): Plugin {
|
||||
const _id = id.split('node_modules/').pop()
|
||||
|
||||
// Resolve relative paths and exceptions
|
||||
if (_id.startsWith('.') || opts.ignore.find(i => _id.startsWith(i))) {
|
||||
// Ensure to take absolute and relative id
|
||||
if (_id.startsWith('.') || opts.ignore.find(i => _id.startsWith(i) || id.startsWith(i))) {
|
||||
return null
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user