Skip to content

fix(ios26): avoid Ionic lazy-loader imports - #262

Merged
rdlabo merged 1 commit into
ios26from
fix/ios26-ionic-core-imports
Oct 2, 2026
Merged

rdlabo merged 1 commit into
ios26from
fix/ios26-ionic-core-imports

Conversation

@rdlabo

@rdlabo rdlabo commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Runtime imports from @ionic/core pull Ionic's lazy-loader build into custom-element applications. This applies the import fix from #261 to the ios26 branch: animation, gesture, and lifecycle utilities use @ionic/core/components/index.js, while types use type-only imports from @ionic/core/components.

Only imports change; behavior, package versions, and the lockfile are unchanged. This removes the theme's direct root imports; the shared utils dependency still needs its corresponding published update (rdlabo-dev/ionic-theme-utils#6).

Validation:

  • Ionic 9.0.0: full CSS/TypeScript build, lint, packed ESM imports.
  • Ionic 8.8.1: TypeScript build and packed ESM imports.
  • The strengthened ESM checker from ionic-theme-utils#6 also passes.
  • No new tests or application behavior changes. Bundle-size savings and visual behavior were not re-measured.

Devin Review

Many thanks to @NgLoader for the excellent work identifying the bundle-size issue and providing the import fixes that this PR brings to iOS 26.

Closes #259

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

Devin Review

@@ -1,5 +1,5 @@
import { createIosTransitionAnimation, shadow } from '@rdlabo/ionic-theme-utils';
import type { Animation } from '@ionic/core';
import type { Animation } from '@ionic/core/components';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔍 依存先更新後にバンドルを再確認する

公開エントリーポイントから利用するポップオーバーと画面遷移は、固定依存の utils を実行時に読み込みます。対応版を採用するまでは、遅延ローダーがバンドルから除去されたか確認できません。

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

@rdlabo
rdlabo merged commit f7be836 into ios26 Oct 2, 2026
20 of 25 checks passed
@github-actions

github-actions Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Playwright test results

passed  182 passed

Details

stats  182 tests across 14 suites
duration  2 minutes, 10 seconds
commit  010c450
info  This detailed result covers Ionic 9 only. Ionic 8 runs against the same screenshots in a separate matrix job; check the workflow run for both results. To update the screenshots, comment with /update-screenshots.

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

📊 Ionic 9 Playwright Test Report

View the detailed Ionic 9 report: https://rdlabo-dev.github.io/ionic-theme-ios27/pr-262/

Ionic 8 runs against the same screenshots in a separate matrix job. View both results in the workflow run.

github-actions Bot added a commit that referenced this pull request Oct 2, 2026
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

📊 Ionic 9 Playwright Test Report

View the detailed Ionic 9 report: https://rdlabo-dev.github.io/ionic-theme-ios27/pr-262/

Ionic 8 runs against the same screenshots in a separate matrix job. View both results in the workflow run.

github-actions Bot added a commit that referenced this pull request Oct 2, 2026
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

📊 Ionic 9 Playwright Test Report

View the detailed Ionic 9 report: https://rdlabo-dev.github.io/ionic-theme-ios27/pr-262/

Ionic 8 runs against the same screenshots in a separate matrix job. View both results in the workflow run.

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

npm beta published

CI passed for the merge commit f7be836783c4. Install the immutable version with:

npm install @rdlabo/ionic-theme-ios26@9.4.1-beta.pr262.shaf7be836783c4

github-actions Bot added a commit that referenced this pull request Oct 2, 2026
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

📊 Ionic 9 Playwright Test Report

View the detailed Ionic 9 report: https://rdlabo-dev.github.io/ionic-theme-ios27/pr-262/

Ionic 8 runs against the same screenshots in a separate matrix job. View both results in the workflow run.

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.

1 participant