popcodeorg / popcodeorg/popcode

Load modern ES bundle in modern browsers

オープン
#1,618 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

help wanted performance
主要言語
JavaScript
スター
191
フォーク
143
平均マージ
4日 11時間
マージ済み PR(30日)
5

説明

It seems to be becoming fairly common practice to generate two versions of an application’s JavaScript bundle: one that retains most of the features and syntax of modern JavaScript, and a second that compiles down to pure ES5 for maximum compatibility. There’s a slightly hacky but ultimately quite simple way to make sure the right bundle flavor is loaded, by using <script type="module"> and nomodule respectively.

We should explore setting things up this way in Popcode. I think it would mostly be worth the extra complexity if the modern JS bundle were substantially smaller than the legacy bundle, so worth investigating that first.

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず issue とリンクされている module/nomodule のリファレンスを確認し、その後、Popcode が現在どのように JavaScript バンドルを生成して読み込んでいるかを調査します。モダン出力と ES5 出力のサイズおよびブラウザー互換性を比較します。利点が明確になり、具体的な実装方針が文書化または採用された時点で作業は完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
build-system, frontend
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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