@parcel/packager-js
Advanced tools
Comparing version 2.0.0-canary.1749 to 2.0.0-canary.1759
@@ -111,2 +111,12 @@ "use strict"; | ||
} | ||
// Add dependencies for parcelRequire calls added by runtimes | ||
// so that the HMR runtime can correctly traverse parents. | ||
let hmrDeps = asset.meta.hmrDeps; | ||
if (this.options.hmrOptions && Array.isArray(hmrDeps)) { | ||
for (let id of hmrDeps) { | ||
(0, _assert().default)(typeof id === 'string'); | ||
deps[id] = id; | ||
} | ||
} | ||
let { | ||
@@ -113,0 +123,0 @@ code, |
{ | ||
"name": "@parcel/packager-js", | ||
"version": "2.0.0-canary.1749+a53f8f3ba", | ||
"version": "2.0.0-canary.1759+4d27ec8b8", | ||
"license": "MIT", | ||
@@ -20,15 +20,15 @@ "publishConfig": { | ||
"node": ">= 16.0.0", | ||
"parcel": "^2.0.0-canary.1747+a53f8f3ba" | ||
"parcel": "^2.0.0-canary.1757+4d27ec8b8" | ||
}, | ||
"dependencies": { | ||
"@parcel/diagnostic": "2.0.0-canary.1749+a53f8f3ba", | ||
"@parcel/plugin": "2.0.0-canary.1749+a53f8f3ba", | ||
"@parcel/rust": "2.13.1-canary.3372+a53f8f3ba", | ||
"@parcel/diagnostic": "2.0.0-canary.1759+4d27ec8b8", | ||
"@parcel/plugin": "2.0.0-canary.1759+4d27ec8b8", | ||
"@parcel/rust": "2.13.3-canary.3382+4d27ec8b8", | ||
"@parcel/source-map": "^2.1.1", | ||
"@parcel/types": "2.0.0-canary.1749+a53f8f3ba", | ||
"@parcel/utils": "2.0.0-canary.1749+a53f8f3ba", | ||
"@parcel/types": "2.0.0-canary.1759+4d27ec8b8", | ||
"@parcel/utils": "2.0.0-canary.1759+4d27ec8b8", | ||
"globals": "^13.2.0", | ||
"nullthrows": "^1.1.1" | ||
}, | ||
"gitHead": "a53f8f3ba1025c7ea8653e9719e0a61ef9717079" | ||
"gitHead": "4d27ec8b8bd1792f536811fef86e74a31fa0e704" | ||
} |
@@ -115,2 +115,12 @@ // @flow strict-local | ||
// Add dependencies for parcelRequire calls added by runtimes | ||
// so that the HMR runtime can correctly traverse parents. | ||
let hmrDeps = asset.meta.hmrDeps; | ||
if (this.options.hmrOptions && Array.isArray(hmrDeps)) { | ||
for (let id of hmrDeps) { | ||
invariant(typeof id === 'string'); | ||
deps[id] = id; | ||
} | ||
} | ||
let {code, mapBuffer} = results[i]; | ||
@@ -117,0 +127,0 @@ let output = code || ''; |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
157837
4034