fix: bundle asset source #1645
Annotations
2 errors and 2 warnings
packages/core/tests/js-plugin-hooks/transform-html.spec.ts#L58
Error: Snapshot `Js Plugin Execution - transformHtml 1` mismatched
- Expected
+ Received
- "<!doctype html><html lang=en><head>
- <meta charset=UTF-8>
- <meta name=viewport content="width=device-width, initial-scale=1.0">
+ "<!doctype html><html lang="en"><head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
{head} {style}
<title>Document</title>
- <script data-farm-entry-script=true>
+ <script data-farm-entry-script="true">
(globalThis || window || global)['f081367f80fe14896375a9f8b8918ca3'] = {};
(globalThis || window || global)['f081367f80fe14896375a9f8b8918ca3'] = {
__FARM_TARGET_ENV__: 'browser',
- };</script><script data-farm-entry-script=true>const e="undefined"!=typeof globalThis?globalThis:window;class t{id;exports;resource_pot;meta;require;constructor(e,t){this.id=e,this.exports={},this.meta={env:{}},this.require=t;}o(e,t,r){Object.defineProperty(e,t,{enumerable:!0,get:r});}d(e,t,r){this.o(e,t,function(){return r;});}_m(e){let t="__esModule";e[t]||Object.defineProperty(e,t,{value:!0});}_e(e,t){let r=this;return Object.keys(t).forEach(function(o){"default"===o||Object.prototype.hasOwnProperty.call(e,o)||r.d(e,o,t[o]);}),t;}i(e){return e&&e.__esModule?e:{default:e};}_g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(this._g=function(e){return e?r:t;})(e);}w(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=this._g(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=s?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(o,i,l):o[i]=e[i];}return o.default=e,r&&r.set(e,o),o;}_(e,t,r,o){this.d(e,t,r[o||t]);}p(e,t){for(let r of Object.keys(t)){let o=e[r];o&&!Object.prototype.hasOwnProperty.call(t,o)&&this.d(t,o,t[r]);}}f(e){return e.default;}}class r{plugins=[];constructor(e){this.plugins=e;}hookSerial(e,...t){for(let r of this.plugins){let o=r[e];o&&o.apply(r,t);}}hookBail(e,...t){for(let r of this.plugins){let o=r[e];if(o){let e=o.apply(r,t);if(e)return e;}}}}const o=(globalThis||window||global).f081367f80fe14896375a9f8b8918ca3,s=o.__FARM_TARGET_ENV__||"node",i="browser"===s&&(globalThis||window).document;class l{moduleSystem;_loadedResources;_loadingResources;publicPaths;constructor(e,t){this.moduleSystem=e,this._loadedResources={},this._loadingResources={},this.publicPaths=t;}load(e,t=0){if(!i){let t=this.moduleSystem.pluginContainer.hookBail("loadResource",e);if(t)return t.then(t=>{if(!t.success&&t.retryWithDefaultResourceLoader){if("script"===e.type)return this._loadScript(`./${e.path}`);if("link"===e.type)return this._loadLink(`./${e.path}`);}else if(!t.success)throw Error(`[Farm] Failed to load resource: "${e.path}, type: ${e.type}". Original Error: ${t.err}`);});if("script"===e.type)return this._loadScript(`./${e.path}`);if("link"===e.type)return this._loadLink(`./${e.path}`);}let r=this.publicPaths[t],o=`${r.endsWith("/")?r.slice(0,-1):r}/${e.path}`;if(this._loadedResources[e.path])return;if(this._loadingResources[e.path])return this._loadingResources[e.path];let s=this.moduleSystem.pluginContainer.hookBail("loadResource",e);return s?s.then(r=>{if(r.success)this.setLoadedResource(e.path);else if(r.retryWithDefaultResourceLoader)return this._load(o,e,t);else throw Error(`[Farm] Failed to load resource: "${e.path}, type: ${e.type}". Original Error: ${r.err}`);}):this._load(o,e,t);}setLoadedResource(e,t=!0){this._loadedResources[e]=t;}isResourceLoaded(e){return this._loadedResources[e];}_load(e,t,r){let o=Promise.resolve();return"script"===t.type?o=this._loadScript(e):"link"===t.type&&(o=this._loadLink(e)),this._loadingResources[t.path]=o,o.then(()=>{this._loadedResources[t.path]=!0,this._loadingResources[t.path]=null;}).catch(o=>{if(console.warn(`[Farm] Failed to load resource "${e}" using publicPath: ${this.publicPaths[r]}`),++r<this.publicPaths.len
|
|
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3, actions/download-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "0369640e952e00708fc45fb99f17c0937f5ff1b8-darwin-arm64", "0369640e952e00708fc45fb99f17c0937f5ff1b8-darwin-arm64-create-farm", "0369640e952e00708fc45fb99f17c0937f5ff1b8-darwin-arm64-plugin-react", "0369640e952e00708fc45fb99f17c0937f5ff1b8-darwin-arm64-plugin-sass", "0369640e952e00708fc45fb99f17c0937f5ff1b8-darwin-x64", "0369640e952e00708fc45fb99f17c0937f5ff1b8-darwin-x64-create-farm", "0369640e952e00708fc45fb99f17c0937f5ff1b8-darwin-x64-plugin-react", "0369640e952e00708fc45fb99f17c0937f5ff1b8-darwin-x64-plugin-sass", "0369640e952e00708fc45fb99f17c0937f5ff1b8-linux-arm64-gnu", "0369640e952e00708fc45fb99f17c0937f5ff1b8-linux-arm64-gnu-create-farm", "0369640e952e00708fc45fb99f17c0937f5ff1b8-linux-arm64-gnu-plugin-react", "0369640e952e00708fc45fb99f17c0937f5ff1b8-linux-arm64-gnu-plugin-sass", "0369640e952e00708fc45fb99f17c0937f5ff1b8-linux-arm64-musl", "0369640e952e00708fc45fb99f17c0937f5ff1b8-linux-arm64-musl-create-farm", "0369640e952e00708fc45fb99f17c0937f5ff1b8-linux-arm64-musl-plugin-react", "0369640e952e00708fc45fb99f17c0937f5ff1b8-linux-arm64-musl-plugin-sass", "0369640e952e00708fc45fb99f17c0937f5ff1b8-linux-x64-gnu", "0369640e952e00708fc45fb99f17c0937f5ff1b8-linux-x64-gnu-create-farm", "0369640e952e00708fc45fb99f17c0937f5ff1b8-linux-x64-gnu-plugin-react", "0369640e952e00708fc45fb99f17c0937f5ff1b8-linux-x64-gnu-plugin-sass", "0369640e952e00708fc45fb99f17c0937f5ff1b8-linux-x64-musl", "0369640e952e00708fc45fb99f17c0937f5ff1b8-linux-x64-musl-create-farm", "0369640e952e00708fc45fb99f17c0937f5ff1b8-linux-x64-musl-plugin-react", "0369640e952e00708fc45fb99f17c0937f5ff1b8-linux-x64-musl-plugin-sass", "0369640e952e00708fc45fb99f17c0937f5ff1b8-win32-arm64-msvc", "0369640e952e00708fc45fb99f17c0937f5ff1b8-win32-arm64-msvc-create-farm", "0369640e952e00708fc45fb99f17c0937f5ff1b8-win32-arm64-msvc-plugin-react", "0369640e952e00708fc45fb99f17c0937f5ff1b8-win32-arm64-msvc-plugin-sass", "0369640e952e00708fc45fb99f17c0937f5ff1b8-win32-ia32-msvc", "0369640e952e00708fc45fb99f17c0937f5ff1b8-win32-ia32-msvc-create-farm", "0369640e952e00708fc45fb99f17c0937f5ff1b8-win32-ia32-msvc-plugin-react", "0369640e952e00708fc45fb99f17c0937f5ff1b8-win32-ia32-msvc-plugin-sass", "0369640e952e00708fc45fb99f17c0937f5ff1b8-win32-x64-msvc", "0369640e952e00708fc45fb99f17c0937f5ff1b8-win32-x64-msvc-create-farm", "0369640e952e00708fc45fb99f17c0937f5ff1b8-win32-x64-msvc-plugin-react", "0369640e952e00708fc45fb99f17c0937f5ff1b8-win32-x64-msvc-plugin-sass".
Please update your workflow to use v4 of the artifact actions.
Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
|
The logs for this run have expired and are no longer available.
Loading