Skip to content

Using Rolldown with Vite v6 #251

Using Rolldown with Vite v6

Using Rolldown with Vite v6 #251

Triggered via pull request September 18, 2024 02:23
@sapphi-redsapphi-red
synchronize #43
rolldown-v6
Status Failure
Total duration 4m 47s
Artifacts

ci.yml

on: pull_request
Get changed files
4s
Get changed files
Lint: node-20, ubuntu-latest
1m 25s
Lint: node-20, ubuntu-latest
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

7 errors
packages/vite/src/node/__tests__/build.spec.ts > build > file hash should change when css changes for dynamic entries: packages/vite/src/node/__tests__/build.spec.ts#L727
AssertionError: the assets/index-sKZBTS2c.js chunk has the same hash but different contents between builds: expected '(function(){const i=document.createEl…' to deeply equal '\u0000\ufffd\u0014J\ufffd\u0004\u0000…' - Expected + Received - ��J��n(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))l(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const r of t.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&l(r)}).observe(document,{childList:!0,subtree:!0});function c(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function l(e){if(e.ep)return;e.ep=!0;const t=c(e);fetch(e.href,t)}})();const p="modulepreload",y=function(d){return"/"+d},m={},g=function(i,c,l){let e=Promise.resolve();if(c&&c.length>0){const t=document.getElementsByTagName("link"),r=document.querySelector("meta[property=csp-nonce]"),s=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));e=Promise.allSettled(c.map(n=>{if(n=y(n,l),n in m)return;m[n]=!0;const u=n.endsWith(".css"),h=u?'[rel="stylesheet"]':"";if(!!l)for(let a=t.length-1;a>=0;a--){const f=t[a];if(f.href===n&&(!u||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${h}`))return;const o=document.createElement("link");if(o.rel=u?"stylesheet":p,u||(o.as="script"),o.crossOrigin="",o.href=n,s&&o.setAttribute("nonce",s),document.head.appendChild(o),u)return new Promise((a,f)=>{o.addEventListener("load",a),o.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${n}`)))})}))}return e.then(t=>{for(const r of t||[]){if(r.status!=="rejected")continue;const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=r.reason,window.dispatchEvent(s),!s.defaultPrevented)throw r.reason}return i()})};window.addEventListener("click",()=>{g(()=>import("./_subentry-EtlMEm7U.js"),[])}); + (function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))l(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const r of t.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&l(r)}).observe(document,{childList:!0,subtree:!0});function c(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function l(e){if(e.ep)return;e.ep=!0;const t=c(e);fetch(e.href,t)}})();const p="modulepreload",y=function(d){return"/"+d},m={},g=function(i,c,l){let e=Promise.resolve();if(c&&c.length>0){const t=document.getElementsByTagName("link"),r=document.querySelector("meta[property=csp-nonce]"),s=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));e=Promise.allSettled(c.map(n=>{if(n=y(n,l),n in m)return;m[n]=!0;const u=n.endsWith(".css"),h=u?'[rel="stylesheet"]':"";if(!!l)for(let a=t.length-1;a>=0;a--){const f=t[a];if(f.href===n&&(!u||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${h}`))return;const o=document.createElement("link");if(o.rel=u?"stylesheet":p,u||(o.as="script"),o.crossOrigin="",o.href=n,s&&o.setAttribute("nonce",s),document.head.appendChild(o),u)return new Promise((a,f)=>{o.addEventListener("load",a),o.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${n}`)))})}))}return e.then(t=>{for(const r of t||[]){if(r.status!=="rejected")continue;const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=r.reason,window.dispatchEvent(s),!s.defaultPrevented)throw r.reason}return i()})};window.addEventListener("click",()=>{g(()=>import("./_subentry-EtlMEm7U.js"),[])}); ❯ assertOutputHashContentChange packages/vite/src/node/__tes
Build&Test: node-20, ubuntu-latest
Process completed with exit code 1.
Lint: node-20, ubuntu-latest
Process completed with exit code 1.
Build&Test: node-22, ubuntu-latest
Process completed with exit code 1.
Build&Test: node-20, macos-latest
Process completed with exit code 1.
Build&Test: node-18, ubuntu-latest
Process completed with exit code 1.
Build&Test: node-20, windows-latest
Process completed with exit code 1.