Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: convert static imports to dynamic imports to reduce bootstrap file count#10009

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
davidfirst wants to merge1 commit intomaster
base:master
Choose a base branch
Loading
fromoptimize-esm-lazy-loading

Conversation

davidfirst
Copy link
Member

Summary

Optimize ESM transition by converting static imports to dynamic imports for packages that contribute significantly to bootstrap file loading.

Background

With the removal of lazy-loading in the babel -> typescript env transition, the bootstrap file count increased from ~1042 to ~2400+ files. This PR aims to reduce that count by identifying packages that:

  • Have high file counts during bootstrap
  • Are used in concentrated locations (easy to convert)
  • Don't break type safety

Approach

Convert static imports toawait import() calls for selected packages, focusing on the best effort-to-impact ratio.

Progress

  • Analyze package usage and identify candidates
  • Convert imports step by step, one package at a time
  • Maintain proper TypeScript types (avoidany)
  • Ensure functionality remains intact
  • Measure file count reduction after each package

🚧This is a draft PR for incremental development

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@davidfirst

[8]ページ先頭

©2009-2025 Movatter.jp