Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: checks for bundling #1448

Merged
merged 1 commit into from
Oct 31, 2024
Merged

ci: checks for bundling #1448

merged 1 commit into from
Oct 31, 2024

Conversation

mingxuanzhangsfdx
Copy link
Member

What does this PR do?

This PR adds several checks during the CI of sdr for bundling stability, including

avoid dynamic imports
i. esbuild is able to report an error when dealing with dynamic imports. —supported:dynamic-import=false
ii. log-override to cover dynamic imports
detect fs.read* usage and send warnings if any to make developers aware of the potential risks to esbuild of such a usage.
if there are modules that are not bundle-able, and we are not aware of, the test workflow should fail.
i. maintain an allowlist for dependencies that are not able to be bundled and we have resolved.
add more explanations for the static imports of json files

What issues does this PR fix or reference?

@W-16304503@

Functionality Before

Lack of bundling checks, so new changes might break bundling process with no awareness.

Functionality After

More bundling checks in CI.

@mingxuanzhangsfdx mingxuanzhangsfdx requested a review from a team as a code owner October 31, 2024 00:11
@mingxuanzhangsfdx mingxuanzhangsfdx merged commit 6a7de13 into main Oct 31, 2024
51 checks passed
@mingxuanzhangsfdx mingxuanzhangsfdx deleted the mz/bundle-checks branch October 31, 2024 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants