-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
the previous code was not easy to tree-shake. this caused a much too large build result, which included unused chunks... lets ease the tree shaking ----- old: ``` ➤ YN0000: ? Bundle size: 778.13 KiB ``` new: ``` ➤ YN0000: ? Bundle size: 574.05 KiB ``` Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/*! | ||
This file is part of CycloneDX SBOM plugin for yarn. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
SPDX-License-Identifier: Apache-2.0 | ||
Copyright (c) OWASP Foundation. All Rights Reserved. | ||
*/ | ||
|
||
/* eslint-disable-next-line @typescript-eslint/explicit-function-return-type */ | ||
export async function getBuildtimeInfo () { | ||
/* | ||
The included file is generated by `../tools/gather-buildtime-info.cjs`. | ||
Its content is pseudo-dynamic and so is the return type of this function. | ||
*/ | ||
return (await import('./__buildtimeInfo.json')).default | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.