Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/lib/csx.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,9 @@ async function updateCodeInJson(jsonPath, csxLocation, base64Code, nativeCode) {
return;
}

if (obj.location === csxLocation && 'code' in obj) {
// Encoding decides how the CSX content is embedded:
if (obj.location === csxLocation) {
// A reference may carry only `location` — the `code` key is then created
// here. Encoding decides how the CSX content is embedded:
// absent / B64 -> Base64 (default)
// NAT -> JSON-stringified native source
// anything else (e.g. REF) -> leave untouched
Expand Down
Loading