Skip to content

Migrate lazy-import package to TypeScript #70475

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

Merged
merged 4 commits into from
Jul 10, 2025

Conversation

im3dabasia
Copy link
Contributor

What?

Part of: #67691
Migrating the lazy-import package to Typescript.

Why?

Type safety.

Testing Instructions

Type check and unit tests.

Copy link

github-actions bot commented Jun 19, 2025

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: im3dabasia <im3dabasia1@git.wordpress.org>
Co-authored-by: manzoorwanijk <manzoorwanijk@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@im3dabasia im3dabasia marked this pull request as draft June 19, 2025 13:31
@im3dabasia im3dabasia changed the title Migrate lazy-import package to TypeScript [WIP] Migrate lazy-import package to TypeScript Jun 19, 2025
@im3dabasia im3dabasia changed the title [WIP] Migrate lazy-import package to TypeScript Migrate lazy-import package to TypeScript Jun 20, 2025
@im3dabasia im3dabasia marked this pull request as ready for review June 20, 2025 09:35
@t-hamano t-hamano added [Type] Code Quality Issues or PRs that relate to code quality [Package] Lazy import /packages/lazy-import labels Jun 20, 2025
@t-hamano t-hamano mentioned this pull request Jun 24, 2025
37 tasks
Copy link
Member

@manzoorwanijk manzoorwanijk left a comment

Choose a reason for hiding this comment

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

We need to update the default export here

module.exports = lazyImport;

by changing it to

export default lazyImport;

@im3dabasia im3dabasia requested a review from manzoorwanijk July 8, 2025 05:38
Copy link
Member

@manzoorwanijk manzoorwanijk left a comment

Choose a reason for hiding this comment

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

This looks good to me now. I have one last suggestion about naming.

@manzoorwanijk manzoorwanijk enabled auto-merge (squash) July 10, 2025 06:55
@manzoorwanijk manzoorwanijk merged commit f3dbed2 into WordPress:trunk Jul 10, 2025
59 checks passed
@github-actions github-actions bot added this to the Gutenberg 21.3 milestone Jul 10, 2025
cbravobernal pushed a commit that referenced this pull request Jul 15, 2025
Co-authored-by: im3dabasia <im3dabasia1@git.wordpress.org>
Co-authored-by: manzoorwanijk <manzoorwanijk@git.wordpress.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Lazy import /packages/lazy-import [Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants