[Enhancement] A Post Processor is required for WebPack to remove @DynamicProtoStub tagged methods
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- typescript, webpack
- 领域
- build-system
调研方向
从 README 中现有 Rollup 插件的描述开始,确定所请求的 Webpack 后处理器应如何识别每种 @DynamicProtoStub 注释形式。当生成的 Webpack 代码移除带有标记的 stub 方法,同时 TypeScript 声明保留原型级定义时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
While a rollup plugin is available to remove the stub functions tagged with @DynamicProtoStub, we should really look at providing a version for WebPack.
As per the readme, tagged functions/methods should be removed from the resulting code as they are necessary to ensure that TypeScript provides the correct resulting definition (*.d.ts) where the functions are declared as "prototype" level functions.
/**
* The typedoc comments
*/
// @DynamicProtoStub
public toBeRemoved():void {
}
// @DynamicProtoStub
public toBeRemoved():void {
}
/**
* This function does stuff
* @param args - used in the function
*/
public myFunction(args:string): void {
...
} // @DynamicProtoStub - Function will be removed
public myFunction2(): void {
...
} // @DynamicProtoStub - Function will be removed
/**
* This function does stuff
* @param args - used in the function
*/
public myFunction(args:string): void {
// @DynamicProtoStub - Function will be removed
}
public myFunction2(): void {
/* @DynamicProtoStub
* Function will be removed
*/
}
- 主要语言
- TypeScript
- 星标
- 29
- 派生
- 16
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/DynamicProto-JS 的其他 Issue
-
[BUG] AppInsights breaks Angular SSR in Cloudflare Worker可能已有人在做 @copilot-swe-agent 于 517 天前认领。 未关闭
microsoft/DynamicProto-JS#95 · 1 条评论 · 1 个 reaction · 已指派 1 人 ·
-
ES6
难度 3/5 1-2 天 新手友好度 35/100
microsoft/DynamicProto-JS#38 ·
查看 microsoft/DynamicProto-JS 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
OpenPetsHQ/openpets#273 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
fritzprix/libr-agent#2161 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 83/100
blackboardsh/electrobun#581 ·
-
backlog-skill effort:xs frontend infra ready-for-agent
难度 2/5 1-3 小时 新手友好度 74/100
LucasSantana-Dev/Lucky#2862 ·
维护者通常 1 天内回复