Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UNPKG not stable #29

Closed
kphrx opened this issue Apr 4, 2023 Discussed in #27 · 1 comment
Closed

UNPKG not stable #29

kphrx opened this issue Apr 4, 2023 Discussed in #27 · 1 comment

Comments

@kphrx
Copy link
Owner

kphrx commented Apr 4, 2023

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

Discussed in #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で生成されるesm.runに置き換えてる

     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
Copy link
Owner Author

kphrx commented Apr 4, 2023

969c7aa

@kphrx kphrx pinned this issue Apr 4, 2023
@kphrx kphrx closed this as completed Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant