@parcel/core
Advanced tools
Comparing version 2.0.0-nightly.230 to 2.0.0-nightly.234
@@ -67,3 +67,6 @@ "use strict"; | ||
filePath, | ||
env: bundle.env | ||
env: bundle.env, | ||
// Runtime assets should be considered source, as they should be | ||
// e.g. compiled to run in the target environment | ||
isSource: true | ||
}; | ||
@@ -70,0 +73,0 @@ connections.push({ |
@@ -152,2 +152,3 @@ "use strict"; | ||
pipeline, | ||
isSource: isSourceOverride, | ||
sideEffects | ||
@@ -159,4 +160,6 @@ } = this.request; | ||
hash, | ||
isSource | ||
} = await (0, _summarizeRequest.default)(this.options.inputFS, this.request); // If the transformer request passed code rather than a filename, | ||
isSource: summarizedIsSource | ||
} = await (0, _summarizeRequest.default)(this.options.inputFS, this.request); // Prefer `isSource` originating from the AssetRequest. | ||
let isSource = isSourceOverride !== null && isSourceOverride !== void 0 ? isSourceOverride : summarizedIsSource; // If the transformer request passed code rather than a filename, | ||
// use a hash as the base for the id to ensure it is unique. | ||
@@ -163,0 +166,0 @@ |
{ | ||
"name": "@parcel/core", | ||
"version": "2.0.0-nightly.230+6bf8145c", | ||
"version": "2.0.0-nightly.234+297087a8", | ||
"license": "MIT", | ||
@@ -19,13 +19,13 @@ "publishConfig": { | ||
"dependencies": { | ||
"@parcel/cache": "2.0.0-nightly.232+6bf8145c", | ||
"@parcel/diagnostic": "2.0.0-nightly.232+6bf8145c", | ||
"@parcel/events": "2.0.0-nightly.232+6bf8145c", | ||
"@parcel/fs": "2.0.0-nightly.232+6bf8145c", | ||
"@parcel/logger": "2.0.0-nightly.232+6bf8145c", | ||
"@parcel/package-manager": "2.0.0-nightly.232+6bf8145c", | ||
"@parcel/plugin": "2.0.0-nightly.232+6bf8145c", | ||
"@parcel/cache": "2.0.0-nightly.236+297087a8", | ||
"@parcel/diagnostic": "2.0.0-nightly.236+297087a8", | ||
"@parcel/events": "2.0.0-nightly.236+297087a8", | ||
"@parcel/fs": "2.0.0-nightly.236+297087a8", | ||
"@parcel/logger": "2.0.0-nightly.236+297087a8", | ||
"@parcel/package-manager": "2.0.0-nightly.236+297087a8", | ||
"@parcel/plugin": "2.0.0-nightly.236+297087a8", | ||
"@parcel/source-map": "2.0.0-alpha.4.9", | ||
"@parcel/types": "2.0.0-nightly.232+6bf8145c", | ||
"@parcel/utils": "2.0.0-nightly.232+6bf8145c", | ||
"@parcel/workers": "2.0.0-nightly.232+6bf8145c", | ||
"@parcel/types": "2.0.0-nightly.236+297087a8", | ||
"@parcel/utils": "2.0.0-nightly.236+297087a8", | ||
"@parcel/workers": "2.0.0-nightly.236+297087a8", | ||
"abortcontroller-polyfill": "^1.1.9", | ||
@@ -46,3 +46,3 @@ "browserslist": "^4.6.6", | ||
}, | ||
"gitHead": "6bf8145c61334e29e20f0619d6ce52b9dcd1f236" | ||
"gitHead": "297087a806f9ed958fad1e2217d735b284cd3d5c" | ||
} |
@@ -66,2 +66,5 @@ // @flow strict-local | ||
env: bundle.env, | ||
// Runtime assets should be considered source, as they should be | ||
// e.g. compiled to run in the target environment | ||
isSource: true, | ||
}; | ||
@@ -68,0 +71,0 @@ connections.push({ |
@@ -143,8 +143,20 @@ // @flow strict-local | ||
async loadAsset(): Promise<UncommittedAsset> { | ||
let {filePath, env, code, pipeline, sideEffects} = this.request; | ||
let {content, size, hash, isSource} = await summarizeRequest( | ||
this.options.inputFS, | ||
this.request, | ||
); | ||
let { | ||
filePath, | ||
env, | ||
code, | ||
pipeline, | ||
isSource: isSourceOverride, | ||
sideEffects, | ||
} = this.request; | ||
let { | ||
content, | ||
size, | ||
hash, | ||
isSource: summarizedIsSource, | ||
} = await summarizeRequest(this.options.inputFS, this.request); | ||
// Prefer `isSource` originating from the AssetRequest. | ||
let isSource = isSourceOverride ?? summarizedIsSource; | ||
// If the transformer request passed code rather than a filename, | ||
@@ -151,0 +163,0 @@ // use a hash as the base for the id to ensure it is unique. |
@@ -194,2 +194,3 @@ // @flow strict-local | ||
env: Environment, | ||
isSource?: boolean, | ||
sideEffects?: boolean, | ||
@@ -196,0 +197,0 @@ code?: string, |
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
703040
20598
3
8
14
216