mirror of
https://github.com/morten-olsen/parcel.git
synced 2026-02-08 01:36:24 +01:00
Deploying to gh-pages from @ morten-olsen/parcel@b9eab7a800 🚀
This commit is contained in:
2
sw.js
2
sw.js
@@ -1 +1 @@
|
|||||||
if(!self.define){const e=e=>{"require"!==e&&(e+=".js");let r=Promise.resolve();return t[e]||(r=new Promise((async r=>{if("document"in self){const t=document.createElement("script");t.src=e,document.head.appendChild(t),t.onload=r}else importScripts(e),r()}))),r.then((()=>{if(!t[e])throw new Error(`Module ${e} didn’t register its module`);return t[e]}))},r=(r,t)=>{Promise.all(r.map(e)).then((e=>t(1===e.length?e[0]:e)))},t={require:Promise.resolve(r)};self.define=(r,s,i)=>{t[r]||(t[r]=Promise.resolve().then((()=>{let t={};const o={uri:location.origin+r.slice(1)};return Promise.all(s.map((r=>{switch(r){case"exports":return t;case"module":return o;default:return e(r)}}))).then((e=>{const r=i(...e);return t.default||(t.default=r),t}))})))}}define("./sw.js",["./workbox-0d6c8d95"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"index.html",revision:"150fb84b915f29c64d894d023be49831"}],{})}));
|
if(!self.define){let e,t={};const o=(o,i)=>(o=new URL(o+".js",i).href,t[o]||new Promise((t=>{if("document"in self){const e=document.createElement("script");e.src=o,e.onload=t,document.head.appendChild(e)}else e=o,importScripts(o),t()})).then((()=>{let e=t[o];if(!e)throw new Error(`Module ${o} didn’t register its module`);return e})));self.define=(i,n)=>{const r=e||("document"in self?document.currentScript.src:"")||location.href;if(t[r])return;let s={};const c=e=>o(e,r),l={module:{uri:r},exports:s,require:c};t[r]=Promise.all(i.map((e=>l[e]||c(e)))).then((e=>(n(...e),s)))}}define(["./workbox-873c5e43"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"index.html",revision:"150fb84b915f29c64d894d023be49831"}],{})}));
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
1
workbox-873c5e43.js
Normal file
1
workbox-873c5e43.js
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user