Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/index-CirhVy2r.chunk.mjs → js/index-DWNgFtZn.chunk.mjs

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/notifications-main.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('notifications', '', 'js/NotificationsApp-DgE3Vt72.chunk.mjs'),window.OC.filePath('notifications', '', 'js/_plugin-vue2_normalizer-Cw-yM9ac.chunk.mjs'),window.OC.filePath('notifications', '', 'js/style-1NKvI1E-.chunk.mjs'),window.OC.filePath('notifications', '', 'css/style-BGeCqt4J.chunk.css'),window.OC.filePath('notifications', '', 'css/_plugin-vue2_normalizer-B9NCSHcX.chunk.css'),window.OC.filePath('notifications', '', 'js/BrowserStorage-5YBVp6WO.chunk.mjs'),window.OC.filePath('notifications', '', 'css/BrowserStorage-DwuUrrYk.chunk.css'),window.OC.filePath('notifications', '', 'css/NotificationsApp-Mm7g9dOt.chunk.css')])))=>i.map(i=>d[i]);
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('notifications', '', 'js/NotificationsApp-CfB39C4g.chunk.mjs'),window.OC.filePath('notifications', '', 'js/_plugin-vue2_normalizer-Cw-yM9ac.chunk.mjs'),window.OC.filePath('notifications', '', 'js/style-1NKvI1E-.chunk.mjs'),window.OC.filePath('notifications', '', 'css/style-BGeCqt4J.chunk.css'),window.OC.filePath('notifications', '', 'css/_plugin-vue2_normalizer-B9NCSHcX.chunk.css'),window.OC.filePath('notifications', '', 'js/BrowserStorage-5YBVp6WO.chunk.mjs'),window.OC.filePath('notifications', '', 'css/BrowserStorage-DwuUrrYk.chunk.css'),window.OC.filePath('notifications', '', 'js/vite-preload-helper-f6abfUQs.chunk.mjs'),window.OC.filePath('notifications', '', 'css/NotificationsApp-Mm7g9dOt.chunk.css')])))=>i.map(i=>d[i]);
/*! third party licenses: js/vendor.LICENSE.txt */
import{V as p}from"./style-1NKvI1E-.chunk.mjs";const v="modulepreload",w=function(i,c){return new URL(i,c).href},y={},A=function(i,c,f){let u=Promise.resolve();if(c&&c.length>0){const s=document.getElementsByTagName("link"),e=document.querySelector("meta[property=csp-nonce]"),h=e?.nonce||e?.getAttribute("nonce");u=Promise.allSettled(c.map(r=>{if(r=w(r,f),r in y)return;y[r]=!0;const l=r.endsWith(".css"),E=l?'[rel="stylesheet"]':"";if(f)for(let a=s.length-1;a>=0;a--){const d=s[a];if(d.href===r&&(!l||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${E}`))return;const o=document.createElement("link");if(o.rel=l?"stylesheet":v,l||(o.as="script"),o.crossOrigin="",o.href=r,h&&o.setAttribute("nonce",h),document.head.appendChild(o),l)return new Promise((a,d)=>{o.addEventListener("load",a),o.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${r}`)))})}))}function m(s){const e=new Event("vite:preloadError",{cancelable:!0});if(e.payload=s,window.dispatchEvent(e),!e.defaultPrevented)throw s}return u.then(s=>{for(const e of s||[])e.status==="rejected"&&m(e.reason);return i().catch(m)})};p.prototype.t=t,p.prototype.n=n,p.prototype.OC=OC,p.prototype.OCA=OCA,new p({el:"#notifications",name:"NotificationsApp",components:{NotificationsApp:()=>A(()=>import("./NotificationsApp-DgE3Vt72.chunk.mjs").then(i=>i.N),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url)},render:i=>i("NotificationsApp")});export{A as _};
import{_ as p}from"./vite-preload-helper-f6abfUQs.chunk.mjs";import{V as o}from"./style-1NKvI1E-.chunk.mjs";o.prototype.t=t,o.prototype.n=n,o.prototype.OC=OC,o.prototype.OCA=OCA,new o({el:"#notifications",name:"NotificationsApp",components:{NotificationsApp:()=>p(()=>import("./NotificationsApp-CfB39C4g.chunk.mjs").then(i=>i.N),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)},render:i=>i("NotificationsApp")});
//# sourceMappingURL=notifications-main.mjs.map
2 changes: 1 addition & 1 deletion js/notifications-main.mjs.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions js/vite-preload-helper-f6abfUQs.chunk.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/*! third party licenses: js/vendor.LICENSE.txt */
const p="modulepreload",v=function(l,o){return new URL(l,o).href},h={},E=function(l,o,d){let a=Promise.resolve();if(o&&o.length>0){const r=document.getElementsByTagName("link"),e=document.querySelector("meta[property=csp-nonce]"),f=e?.nonce||e?.getAttribute("nonce");a=Promise.allSettled(o.map(t=>{if(t=v(t,d),t in h)return;h[t]=!0;const s=t.endsWith(".css"),m=s?'[rel="stylesheet"]':"";if(d)for(let c=r.length-1;c>=0;c--){const i=r[c];if(i.href===t&&(!s||i.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${t}"]${m}`))return;const n=document.createElement("link");if(n.rel=s?"stylesheet":p,s||(n.as="script"),n.crossOrigin="",n.href=t,f&&n.setAttribute("nonce",f),document.head.appendChild(n),s)return new Promise((c,i)=>{n.addEventListener("load",c),n.addEventListener("error",()=>i(new Error(`Unable to preload CSS for ${t}`)))})}))}function u(r){const e=new Event("vite:preloadError",{cancelable:!0});if(e.payload=r,window.dispatchEvent(e),!e.defaultPrevented)throw r}return a.then(r=>{for(const e of r||[])e.status==="rejected"&&u(e.reason);return l().catch(u)})};export{E as _};
//# sourceMappingURL=vite-preload-helper-f6abfUQs.chunk.mjs.map
4 changes: 4 additions & 0 deletions js/vite-preload-helper-f6abfUQs.chunk.mjs.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@



This file is generated from multiple sources. Included packages:
1 change: 1 addition & 0 deletions js/vite-preload-helper-f6abfUQs.chunk.mjs.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions js/vite-preload-helper-f6abfUQs.chunk.mjs.map.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@



This file is generated from multiple sources. Included packages:
22 changes: 22 additions & 0 deletions vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,26 @@ export default createAppConfig({
},
includeSourceMaps: true,
},
config: {
build: {
rollupOptions: {
output: {
manualChunks: (id) => {
// By default, Vite stores __vitePreload in the entrypoint
// Then chunks import entrypoint to get the _vitePreload function
// Which results not only in cyclic import but also duplicated module in production
// Because in production entrypoints must be imported with ?v=hash cache busting
// See: https://github.com/nextcloud/notifications/issues/2164
//
// To avoid it - explicitly exclude the preload helper to a separate chunk
//
// TODO: add to @nextcloud/vite-config
if (id.startsWith('\0vite/preload-helper')) {
return 'vite-preload-helper'
}
},
},
},
},
},
})