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

Extending / Overriding Mappings

オープン
#133 コメント 0 件 リアクション 0 件 担当者 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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。