microsoft / microsoft/BotFramework-DirectLineJS
use babel transform instead of webpack to inject `process.env.VERSION`
未关闭
还没有人认领这个 Issue。
backlog
bug
- 主要语言
- TypeScript
- 星标
- 199
- 派生
- 133
- PR 合并指标
- 30 天内没有已合并 PR
描述
Currently, only the webpacked bundle has this variable injected, while the npm module does not.
This package should help: https://github.com/FormidableLabs/babel-plugin-transform-define
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
检查 webpack 打包后的 bundle 和 npm 模块构建路径,找出 process.env.VERSION 注入的位置。阅读所引用的 babel-plugin-transform-define 包,然后验证两个输出是否一致地公开版本值。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- babel, typescript, webpack
- 领域
- build-system
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100