Skip to content

chore(bundler): add tree-shaking - #1161

Open
jkowalleck wants to merge 104 commits into
2.0-devfrom
chore/bundler-rewrite-treeshake
Open

jkowalleck wants to merge 104 commits into
2.0-devfrom
chore/bundler-rewrite-treeshake

Conversation

@jkowalleck

@jkowalleck jkowalleck commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

implement tree shaking,

applied to the bundled schema.
report:

tree-shake: hollowed (34): [
  '#/$defs/cyclonedx-ai-modelcard-2.0',
  '#/$defs/cyclonedx-annotation-2.0',
  '#/$defs/cyclonedx-behavior-2.0',
  '#/$defs/cyclonedx-blueprint-2.0',
  '#/$defs/cyclonedx-business-objective-2.0',
  '#/$defs/cyclonedx-certification-2.0',
  '#/$defs/cyclonedx-citation-2.0',
  '#/$defs/cyclonedx-common-2.0',
  '#/$defs/cyclonedx-component-2.0',
  '#/$defs/cyclonedx-composition-2.0',
  '#/$defs/cyclonedx-control-2.0',
  '#/$defs/cyclonedx-cryptography-2.0',
  '#/$defs/cyclonedx-data-2.0',
  '#/$defs/cyclonedx-declaration-2.0',
  '#/$defs/cyclonedx-definition-2.0',
  '#/$defs/cyclonedx-dependency-2.0',
  '#/$defs/cyclonedx-evidence-2.0',
  '#/$defs/cyclonedx-formulation-2.0',
  '#/$defs/cyclonedx-jss_X590_2023_10-2.0',
  '#/$defs/cyclonedx-license-2.0',
  '#/$defs/cyclonedx-metadata-2.0',
  '#/$defs/cyclonedx-party-2.0',
  '#/$defs/cyclonedx-patent-2.0',
  '#/$defs/cyclonedx-perspective-2.0',
  '#/$defs/cyclonedx-physical-2.0',
  '#/$defs/cyclonedx-profile-2.0',
  '#/$defs/cyclonedx-release-notes-2.0',
  '#/$defs/cyclonedx-requirement-2.0',
  '#/$defs/cyclonedx-risk-2.0',
  '#/$defs/cyclonedx-standard-2.0',
  '#/$defs/cyclonedx-threat-2.0',
  '#/$defs/cyclonedx-usecase-2.0',
  '#/$defs/cyclonedx-vulnerability-2.0',
  '#/$defs/cyclonedx-weakness-2.0'
]
tree-shake: voided (0): []
tree-shake: removed (38): [
  '#/$defs/cyclonedx-ai-modelcard-2.0/type',
  '#/$defs/cyclonedx-annotation-2.0/type',
  '#/$defs/cyclonedx-behavior-2.0/type',
  '#/$defs/cyclonedx-blueprint-2.0/type',
  '#/$defs/cyclonedx-business-objective-2.0/type',
  '#/$defs/cyclonedx-certification-2.0/type',
  '#/$defs/cyclonedx-citation-2.0/type',
  '#/$defs/cyclonedx-common-2.0/$defs/base64',
  '#/$defs/cyclonedx-common-2.0/$defs/baseObject',
  '#/$defs/cyclonedx-common-2.0/$defs/organizationalEntityOrContact',
  '#/$defs/cyclonedx-common-2.0/$defs/timestamp',
  '#/$defs/cyclonedx-common-2.0/type',
  '#/$defs/cyclonedx-component-2.0/type',
  '#/$defs/cyclonedx-composition-2.0/type',
  '#/$defs/cyclonedx-control-2.0/type',
  '#/$defs/cyclonedx-cryptography-2.0/type',
  '#/$defs/cyclonedx-data-2.0/type',
  '#/$defs/cyclonedx-declaration-2.0/type',
  '#/$defs/cyclonedx-definition-2.0/type',
  '#/$defs/cyclonedx-dependency-2.0/type',
  '#/$defs/cyclonedx-evidence-2.0/type',
  '#/$defs/cyclonedx-formulation-2.0/type',
  '#/$defs/cyclonedx-jss_X590_2023_10-2.0/type',
  '#/$defs/cyclonedx-license-2.0/type',
  '#/$defs/cyclonedx-metadata-2.0/type',
  '#/$defs/cyclonedx-party-2.0/type',
  '#/$defs/cyclonedx-patent-2.0/type',
  '#/$defs/cyclonedx-perspective-2.0/type',
  '#/$defs/cyclonedx-physical-2.0/type',
  '#/$defs/cyclonedx-profile-2.0/type',
  '#/$defs/cyclonedx-release-notes-2.0/type',
  '#/$defs/cyclonedx-requirement-2.0/type',
  '#/$defs/cyclonedx-risk-2.0/type',
  '#/$defs/cyclonedx-standard-2.0/type',
  '#/$defs/cyclonedx-threat-2.0/type',
  '#/$defs/cyclonedx-usecase-2.0/type',
  '#/$defs/cyclonedx-vulnerability-2.0/type',
  '#/$defs/cyclonedx-weakness-2.0/type'
]
  • code written by hand, docs updated by AI ()

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
@jkowalleck jkowalleck added this to the 2.0 milestone Oct 15, 2026
@jkowalleck jkowalleck added the chore A chore label Oct 15, 2026
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
…ite-treeshake

# Conflicts:
#	schema/2.0/cyclonedx-2.0-bundled.min.schema.json
#	tools/src/main/js/bundler/test/snapshot/main-bundled.min.schema.json
#	tools/src/main/js/bundler/test/snapshot/main-bundled.schema.json
#	tools/src/main/js/bundler/test/snapshot/report.json
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
…ite-treeshake

# Conflicts:
#	tools/src/main/js/bundler/test/snapshot/main-bundled.min.schema.json
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
"$ref": "#/$defs/unused"
}
]
null

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this shall not be null - it shall be a void schema !

}
}
},
null,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this shall not be null - it shall be a void schema !

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
@jkowalleck
jkowalleck marked this pull request as ready for review October 26, 2026 16:26
@jkowalleck
jkowalleck requested a review from a team as a code owner October 26, 2026 16:26
@jkowalleck jkowalleck changed the title [WIP] chore(bundler): add tree shaking chore(bundler): add tree shaking Oct 26, 2026
@jkowalleck jkowalleck changed the title chore(bundler): add tree shaking chore(bundler): add tree-shaking Oct 26, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore A chore

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant