ember-cli / ember-cli/babel-plugin-ember-modules-api-polyfill

Extending / Overriding Mappings

未关闭
#133 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
15
派生
19
PR 合并指标
30 天内没有已合并 PR

描述

Currently only an `ignore` option is accepted, which allows to exempt certain imports from being rewritten, e.g. as used by https://github.com/babel/ember-cli-babel/blob/aa6b45cad241617279d24f96390f9ced3ff0e754/index.js#L610-L630.

It would be awesome, if we could expand this API to allow overriding / amending the standard mapping from `ember-rfc176-data`.

During the implementation of the [`ember-cached-decorator-polyfill`](https://github.com/ember-polyfills/ember-cached-decorator-polyfill), I had to do some crazy contortions (https://github.com/ember-polyfills/ember-cached-decorator-polyfill/pull/12) to add new entries to the mapping. It would be great, if we could improve the infrastructure for future polyfills here. 💕

I guess this will also require some changes to `ember-cli-babel`, but the more significant changes will happen here.

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先追踪当前的 `ignore` 选项和来自 `ember-rfc176-data` 的标准映射是如何处理的。然后检查与 `ember-cli-babel` 的集成;完成的标准应当是,调用方可以通过清晰的 API 覆盖或补充映射,而无需采用针对 `ember-cached-decorator-polyfill` 所描述的那些曲折做法。

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

评估

技术栈
babel, javascript
领域
tooling
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

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