Make standalone import the default

未關閉
#5,101 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
angular, typescript
領域
cli

研究方向

先追蹤 Ionic CLI 如何公開或產生 Angular imports,然後比較 issue 中所示的 standalone 和 NgModule 進入點。payload 中沒有指定原始檔、測試或進入點,因此先找出相關的 import 解析與專案產生程式碼。完成的定義是 standalone imports 預設可運作,而 NgModule 應用程式使用明確的 @ionic/angular/ngmodule 路徑,並有涵蓋兩種模式的測試。

由索引模型根據 Issue 內容生成。

描述

triage

Since Angular now defaults to standalone component, it only make sense for ionic imports to be standalone by default.

It gets tedious to type something like:

import { Config } from '@ionic/angular/standalone';

vs

import { Config } from '@ionic/angular/';

Make NgModule based apps use:

import { Config } from '@ionic/angular/ngmodule';
主要語言
TypeScript
星號
2k
分支
678
PR 合併指標
30 天內沒有已合併 PR

環境準備

  • 提供 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

ionic-team/ionic-cli 的其他 Issue

查看 ionic-team/ionic-cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。