Support self-contained build without fallback dependency modules

未关闭
#731 3 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
javascript
领域
build-system, cli

调研方向

Start by tracing the ui5 build self-contained --all entry point and how framework dependencies are currently included in the build output. Compare the generated files with the requested minimal dist/ tree; done means the bundled resources remain while non-bundled fallback dependency modules can be omitted.

由索引模型根据 Issue 内容生成。

描述

module/ui5-builder

Is your feature request related to a problem? Please describe.

If a self-contained build with dependencies is performed, all framework dependencies will be also be included as non-bundled version. Although this behaviour makes sense as fallback option in case any resources were not included in the bundling, it would be good if it can be configured.

Describe the solution you'd like

In given sample application project:

  • Dependency to sap/m
  • Supported Theme: Horizon
  • Support Language: EN

It shall be possible to run a minimal self-contained build...

ui5 build self-contained --all

...that results in the following build output (simplified and no consideration of debug sources):

dist/
├── index.html
├── Component-preload.js
└── resources/
    ├── sap-ui-custom.js
    ├── ui5loader.js
    └── sap/
        ├── ui/
        │   ├── core
        │   └── messagebundle.properties/
        │       └── themes/
        │           └── sap_horizon/
        │               └── library.css
        └── m/
            ├── messagebundle.properties
            └── themes/
                └── sap_horizon/
                    └── library.css       
主要语言
JavaScript
星标
510
派生
80
平均合并
2 天 22 小时
30 天内合并 PR
12

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

UI5/cli 的其他 Issue

查看 UI5/cli 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。