react-component / react-component/menu
Mixing of require() and import statement
オープン
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 701
- フォーク
- 266
- 平均マージ
- 4日 11時間
- マージ済み PR(30日)
- 3
説明
Assuming that this project is being developed using ES modules, there is an issue on the src/DomWrap.jsx and src/utils.js files.
There is a mix of require() (CommonJS syntax) and import (ES6 module syntax).
This causes problems when trying to bundle something that depends on this component (in my case that something antd) and bundling it with rollup (that takes ES6 modules as a default).
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず src/DomWrap.jsx と src/utils.js のモジュール文を調べ、次に依存コンポーネントを使って報告された Rollup のバンドル問題を再現します。これらのファイルで CommonJS require() と ES モジュールの import 構文が混在しなくなり、依存関係のバンドルが成功すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, react, rollup
- 領域
- build-system, frontend
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 35/100