Seo-4d696b75 / ekisagasu

駅メモ!支援ツールサイト「駅サガース」のリポジトリ
https://ekisagasu.seo4d696b75.com/
MIT License
0 stars 0 forks source link

Polyfill.io 調査 #74

Closed Seo-4d696b75 closed 1 month ago

Seo-4d696b75 commented 1 month ago

Google Cloud より警告通知が気ている?

image

Seo-4d696b75 commented 1 month ago

直接使っている認識はない...

bableのpolyfillライブラリ?は使っているみたいだけど Polyfill.io の使用箇所は無いはず?

% npm ls -a | grep polyfill
│ │ │ ├─┬ babel-plugin-polyfill-corejs2@0.4.6
│ │ │ │ ├─┬ @babel/helper-define-polyfill-provider@0.4.3
│ │ │ ├─┬ babel-plugin-polyfill-corejs3@0.8.6
│ │ │ │ ├── @babel/helper-define-polyfill-provider@0.4.3 deduped
│ │ │ ├─┬ babel-plugin-polyfill-regenerator@0.5.3
│ │ │ │ └── @babel/helper-define-polyfill-provider@0.4.3 deduped
│ │ │ ├── babel-plugin-polyfill-corejs2@0.4.6 deduped
│ │ │ ├── babel-plugin-polyfill-corejs3@0.8.6 deduped
│ │ │ ├── babel-plugin-polyfill-regenerator@0.5.3 deduped
│ ├─┬ react-app-polyfill@3.0.0
Seo-4d696b75 commented 1 month ago

そもそも本アプリではCDN経由で外部ソースを利用していない 必要な依存をすべてビルド時にバンドルして、index.html と一緒にGitHub Page にホストしている

当該のURL: https://polyfill.io/v3/polyfill.min.js

参考:https://neightbor.jp/blog/js-polyfill-io

Seo-4d696b75 commented 1 month ago

polyfill.io で検索にhitするのは謎のコメント文だけ

最新API未対応なブラウザでも使いたい場合は polyfill ライブラリ使ってね〜 Polyfill.io をおすすめするよ〜

という内容なので実際に Polyfill.io のソースが含まれるわけでな無さそう そもそもIEなんて遺物をサポートする気はない。

`You cannot use the \\`useSearchParams\\` hook in a browser that does not ` +\n      
`support the URLSearchParams API. If you need to support Internet ` +\n      
`Explorer 11, we recommend you load a polyfill such as ` +\n      
`https://github.com/ungap/url-search-params\\n\\n` +\n     
 `If you're unsure how to load polyfills, we recommend you check out ` +\n      
`https://polyfill.io/v3/ which provides some recommendations about how ` +\n      
`to load polyfills only for users that need them, instead of for every ` +\n      
`user.`\n 
Seo-4d696b75 commented 1 month ago

進展なし