kphrx / ZenzaWatch

fix playlist
100 stars 10 forks source link

UNPKG not stable #29

Closed kphrx closed 1 year ago

kphrx commented 1 year ago

最近またunpkgが死んだりしてるので 1886, 1893 esm.run に移行させようと思う

Discussed in https://github.com/kphrx/ZenzaWatch/discussions/27

Originally posted by **kphrx** October 28, 2022 UNPKGが死んでるのでjsDeliverのスクリプトを取得するように変更する方法を記述してます https://dic.nicovideo.jp/b/a/zenzawatch/1801-#1817 大百科の仕様なのか末尾の`'`が`39;`になってるのでここにdiffおいとく 大百科のレスではcdn.jsdelivr.net/npmを指定してるけど[Migrating from unpkg to jsDelivr](https://www.jsdelivr.com/unpkg)で生成されるesm.runに置き換えてる ```diff Promise.all([//https://unpkg.com/lit@2.0.2/html.js?module - dimport('https://unpkg.com/lit@2.0.2/html.js?module'), - dimport('https://unpkg.com/lit@2.0.2/directives/repeat?module'), - dimport('https://unpkg.com/lit@2.0.2/directives/class-map?module') + dimport('https://esm.run/lit@2.0.2/html.js'), + dimport('https://esm.run/lit@2.0.2/directives/repeat'), + dimport('https://esm.run/lit@2.0.2/directives/class-map') ]).then(([lit, ...directives]) => { dll.lit = lit; dll.directives = Object.assign({}, ...directives); emitter.emitResolve('lit-html', dll.lit); }); ``` UNPKG~のステータスページ~を確認して生き返ってたらそのまま治ります https://www.unpkg.com/status/ ずっと治らないようなら 2.6.3-fix-playlist.25 でCDNの変更するつもりです
kphrx commented 1 year ago

969c7aa61b30a52392e0ce7b6933cd822460c8c6