@parcel/runtime-js
Advanced tools
Comparing version 2.0.0-nightly.339 to 2.0.0-nightly.340
@@ -153,4 +153,14 @@ "use strict"; | ||
return entries.some(e => bundleGroup.entryAssetId === e.id); | ||
})); // URL dependency or not, fall back to including a runtime that exports the url | ||
})); | ||
if (bundle.env.outputFormat === 'commonjs') { | ||
assets.push({ | ||
filePath: __filename, | ||
dependency, | ||
code: `module.exports = require("./" + ${getRelativePathExpr(bundle, mainBundle)})` | ||
}); | ||
continue; | ||
} // URL dependency or not, fall back to including a runtime that exports the url | ||
assets.push(getURLRuntime(dependency, bundle, mainBundle)); | ||
@@ -157,0 +167,0 @@ } |
{ | ||
"name": "@parcel/runtime-js", | ||
"version": "2.0.0-nightly.339+afc2c9ef", | ||
"version": "2.0.0-nightly.340+8d643288", | ||
"license": "MIT", | ||
@@ -23,7 +23,7 @@ "publishConfig": { | ||
"dependencies": { | ||
"@parcel/plugin": "2.0.0-nightly.339+afc2c9ef", | ||
"@parcel/utils": "2.0.0-nightly.339+afc2c9ef", | ||
"@parcel/plugin": "2.0.0-nightly.340+8d643288", | ||
"@parcel/utils": "2.0.0-nightly.340+8d643288", | ||
"nullthrows": "^1.1.1" | ||
}, | ||
"gitHead": "afc2c9efc2cfcd016bc743291706099eaab004e4" | ||
"gitHead": "8d64328859b787164e596a2140cccfa320e3a799" | ||
} |
@@ -160,2 +160,14 @@ // @flow strict-local | ||
if (bundle.env.outputFormat === 'commonjs') { | ||
assets.push({ | ||
filePath: __filename, | ||
dependency, | ||
code: `module.exports = require("./" + ${getRelativePathExpr( | ||
bundle, | ||
mainBundle, | ||
)})`, | ||
}); | ||
continue; | ||
} | ||
// URL dependency or not, fall back to including a runtime that exports the url | ||
@@ -162,0 +174,0 @@ assets.push(getURLRuntime(dependency, bundle, mainBundle)); |
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
43393
1237