@nuxt/utils
Advanced tools
Comparing version 2.14.3 to 2.14.4
/*! | ||
* @nuxt/utils v2.14.3 (c) 2016-2020 | ||
* @nuxt/utils v2.14.4 (c) 2016-2020 | ||
@@ -1947,2 +1947,6 @@ * - All the amazing contributors | ||
function isHMRCompatible (id) { | ||
return !/[/\\]mongoose[/\\/]/.test(id) | ||
} | ||
function isExternalDependency (id) { | ||
@@ -1953,3 +1957,3 @@ return /[/\\]node_modules[/\\]/.test(id) | ||
function clearRequireCache (id) { | ||
if (isExternalDependency(id)) { | ||
if (isExternalDependency(id) && isHMRCompatible(id)) { | ||
return | ||
@@ -1969,7 +1973,8 @@ } | ||
// Needs to be cleared before children, to protect against circular deps (#7966) | ||
delete require.cache[id]; | ||
for (const child of entry.children) { | ||
clearRequireCache(child.id); | ||
} | ||
delete require.cache[id]; | ||
} | ||
@@ -2101,2 +2106,3 @@ | ||
exports.isFullStatic = isFullStatic; | ||
exports.isHMRCompatible = isHMRCompatible; | ||
exports.isIndexFileAndFolder = isIndexFileAndFolder; | ||
@@ -2103,0 +2109,0 @@ exports.isModernBrowser = isModernBrowser; |
{ | ||
"name": "@nuxt/utils", | ||
"version": "2.14.3", | ||
"version": "2.14.4", | ||
"repository": "nuxt/nuxt.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55678
1847