feat: add option for css preloads when prerendering #21375
Annotations
4 errors
Run pnpm test:cross-platform:build:
packages/kit/src/core/config/index.spec.js#L128
AssertionError: expected { extensions: [ '.svelte' ], …(1) } to deeply equal { extensions: [ '.svelte' ], …(1) }
- Expected
+ Received
Object {
"extensions": Array [
".svelte",
],
"kit": Object {
"adapter": null,
"alias": Object {},
"appDir": "_app",
"csp": Object {
"directives": Object {
"base-uri": undefined,
"block-all-mixed-content": false,
"child-src": undefined,
"connect-src": undefined,
"default-src": undefined,
"font-src": undefined,
"form-action": undefined,
"frame-ancestors": undefined,
"frame-src": undefined,
"img-src": undefined,
"manifest-src": undefined,
"media-src": undefined,
"navigate-to": undefined,
"object-src": undefined,
"plugin-types": undefined,
"prefetch-src": undefined,
"referrer": undefined,
"report-to": undefined,
"report-uri": undefined,
"require-sri-for": undefined,
"require-trusted-types-for": undefined,
"sandbox": undefined,
"script-src": undefined,
"script-src-attr": undefined,
"script-src-elem": undefined,
"style-src": undefined,
"style-src-attr": undefined,
"style-src-elem": undefined,
"trusted-types": undefined,
"upgrade-insecure-requests": false,
"worker-src": undefined,
},
"mode": "auto",
"reportOnly": Object {
"base-uri": undefined,
"block-all-mixed-content": false,
"child-src": undefined,
"connect-src": undefined,
"default-src": undefined,
"font-src": undefined,
"form-action": undefined,
"frame-ancestors": undefined,
"frame-src": undefined,
"img-src": undefined,
"manifest-src": undefined,
"media-src": undefined,
"navigate-to": undefined,
"object-src": undefined,
"plugin-types": undefined,
"prefetch-src": undefined,
"referrer": undefined,
"report-to": undefined,
"report-uri": undefined,
"require-sri-for": undefined,
"require-trusted-types-for": undefined,
"sandbox": undefined,
"script-src": undefined,
"script-src-attr": undefined,
"script-src-elem": undefined,
"style-src": undefined,
"style-src-attr": undefined,
"style-src-elem": undefined,
"trusted-types": undefined,
"upgrade-insecure-requests": false,
"worker-src": undefined,
},
},
"csrf": Object {
"checkOrigin": true,
},
"embedded": false,
"env": Object {
"dir": "/Users/runner/work/kit/kit/packages/kit",
"privatePrefix": "",
"publicPrefix": "PUBLIC_",
},
"files": Object {
"appTemplate": "src/app.html",
"assets": "static",
"errorTemplate": "src/error.html",
"hooks": Object {
"client": "src/hooks.client",
"server": "src/hooks.server",
"universal": "src/hooks",
},
"lib": "src/lib",
"params": "src/params",
"routes": "src/routes",
"serviceWorker": "src/service-worker",
},
"inlineStyleThreshold": 0,
"moduleExtensions": Array [
".js",
".ts",
],
"outDir": ".svelte-kit",
"output": Object {
"preloadStrategy": "modulepreload",
},
"paths": Object {
"assets": "",
"base": "",
"relative": true,
},
"prerender": Object {
"concurrency": 1,
"crawl": true,
"entries": Array [
"*",
],
+ "generateCssPreloadTags": false,
"origin": "http://sveltekit-prerender",
},
"serviceWorker": Object {
"register": true,
},
"typescript": Object {},
"version": Object {
"name": "1726354268093",
|
Run pnpm test:cross-platform:build:
packages/kit/src/core/config/index.spec.js#L191
AssertionError: expected { extensions: [ '.svelte' ], …(1) } to deeply equal { extensions: [ '.svelte' ], …(1) }
- Expected
+ Received
Object {
"extensions": Array [
".svelte",
],
"kit": Object {
"adapter": null,
"alias": Object {},
"appDir": "_app",
"csp": Object {
"directives": Object {
"base-uri": undefined,
"block-all-mixed-content": false,
"child-src": undefined,
"connect-src": undefined,
"default-src": undefined,
"font-src": undefined,
"form-action": undefined,
"frame-ancestors": undefined,
"frame-src": undefined,
"img-src": undefined,
"manifest-src": undefined,
"media-src": undefined,
"navigate-to": undefined,
"object-src": undefined,
"plugin-types": undefined,
"prefetch-src": undefined,
"referrer": undefined,
"report-to": undefined,
"report-uri": undefined,
"require-sri-for": undefined,
"require-trusted-types-for": undefined,
"sandbox": undefined,
"script-src": undefined,
"script-src-attr": undefined,
"script-src-elem": undefined,
"style-src": undefined,
"style-src-attr": undefined,
"style-src-elem": undefined,
"trusted-types": undefined,
"upgrade-insecure-requests": false,
"worker-src": undefined,
},
"mode": "auto",
"reportOnly": Object {
"base-uri": undefined,
"block-all-mixed-content": false,
"child-src": undefined,
"connect-src": undefined,
"default-src": undefined,
"font-src": undefined,
"form-action": undefined,
"frame-ancestors": undefined,
"frame-src": undefined,
"img-src": undefined,
"manifest-src": undefined,
"media-src": undefined,
"navigate-to": undefined,
"object-src": undefined,
"plugin-types": undefined,
"prefetch-src": undefined,
"referrer": undefined,
"report-to": undefined,
"report-uri": undefined,
"require-sri-for": undefined,
"require-trusted-types-for": undefined,
"sandbox": undefined,
"script-src": undefined,
"script-src-attr": undefined,
"script-src-elem": undefined,
"style-src": undefined,
"style-src-attr": undefined,
"style-src-elem": undefined,
"trusted-types": undefined,
"upgrade-insecure-requests": false,
"worker-src": undefined,
},
},
"csrf": Object {
"checkOrigin": true,
},
"embedded": false,
"env": Object {
"dir": "/Users/runner/work/kit/kit/packages/kit",
"privatePrefix": "",
"publicPrefix": "PUBLIC_",
},
"files": Object {
"appTemplate": "src/app.html",
"assets": "public",
"errorTemplate": "src/error.html",
"hooks": Object {
"client": "src/hooks.client",
"server": "src/hooks.server",
"universal": "src/hooks",
},
"lib": "src/lib",
"params": "src/params",
"routes": "src/routes",
"serviceWorker": "src/service-worker",
},
"inlineStyleThreshold": 0,
"moduleExtensions": Array [
".js",
".ts",
],
"outDir": ".svelte-kit",
"output": Object {
"preloadStrategy": "modulepreload",
},
"paths": Object {
"assets": "",
"base": "",
"relative": true,
},
"prerender": Object {
"concurrency": 1,
"crawl": true,
"entries": Array [
"*",
],
+ "generateCssPreloadTags": false,
"origin": "http://sveltekit-prerender",
},
"serviceWorker": Object {
"register": true,
},
"typescript": Object {},
"version": Object {
"name": "0",
"pollInte
|
Run pnpm test:cross-platform:build:
packages/kit/src/core/config/index.spec.js#L360
AssertionError: expected { extensions: [ '.svelte' ], …(1) } to deeply equal { extensions: [ '.svelte' ], …(1) }
- Expected
+ Received
Object {
"extensions": Array [
".svelte",
],
"kit": Object {
"adapter": null,
"alias": Object {},
"appDir": "_app",
"csp": Object {
"directives": Object {
"base-uri": undefined,
"block-all-mixed-content": false,
"child-src": undefined,
"connect-src": undefined,
"default-src": undefined,
"font-src": undefined,
"form-action": undefined,
"frame-ancestors": undefined,
"frame-src": undefined,
"img-src": undefined,
"manifest-src": undefined,
"media-src": undefined,
"navigate-to": undefined,
"object-src": undefined,
"plugin-types": undefined,
"prefetch-src": undefined,
"referrer": undefined,
"report-to": undefined,
"report-uri": undefined,
"require-sri-for": undefined,
"require-trusted-types-for": undefined,
"sandbox": undefined,
"script-src": undefined,
"script-src-attr": undefined,
"script-src-elem": undefined,
"style-src": undefined,
"style-src-attr": undefined,
"style-src-elem": undefined,
"trusted-types": undefined,
"upgrade-insecure-requests": false,
"worker-src": undefined,
},
"mode": "auto",
"reportOnly": Object {
"base-uri": undefined,
"block-all-mixed-content": false,
"child-src": undefined,
"connect-src": undefined,
"default-src": undefined,
"font-src": undefined,
"form-action": undefined,
"frame-ancestors": undefined,
"frame-src": undefined,
"img-src": undefined,
"manifest-src": undefined,
"media-src": undefined,
"navigate-to": undefined,
"object-src": undefined,
"plugin-types": undefined,
"prefetch-src": undefined,
"referrer": undefined,
"report-to": undefined,
"report-uri": undefined,
"require-sri-for": undefined,
"require-trusted-types-for": undefined,
"sandbox": undefined,
"script-src": undefined,
"script-src-attr": undefined,
"script-src-elem": undefined,
"style-src": undefined,
"style-src-attr": undefined,
"style-src-elem": undefined,
"trusted-types": undefined,
"upgrade-insecure-requests": false,
"worker-src": undefined,
},
},
"csrf": Object {
"checkOrigin": true,
},
"embedded": false,
"env": Object {
"dir": "/Users/runner/work/kit/kit/packages/kit",
"privatePrefix": "",
"publicPrefix": "PUBLIC_",
},
"files": Object {
"appTemplate": "/Users/runner/work/kit/kit/packages/kit/src/core/config/fixtures/default/src/app.html",
"assets": "/Users/runner/work/kit/kit/packages/kit/src/core/config/fixtures/default/static",
"errorTemplate": "/Users/runner/work/kit/kit/packages/kit/src/core/config/fixtures/default/src/error.html",
"hooks": Object {
"client": "/Users/runner/work/kit/kit/packages/kit/src/core/config/fixtures/default/src/hooks.client",
"server": "/Users/runner/work/kit/kit/packages/kit/src/core/config/fixtures/default/src/hooks.server",
"universal": "/Users/runner/work/kit/kit/packages/kit/src/core/config/fixtures/default/src/hooks",
},
"lib": "/Users/runner/work/kit/kit/packages/kit/src/core/config/fixtures/default/src/lib",
"params": "/Users/runner/work/kit/kit/packages/kit/src/core/config/fixtures/default/src/params",
"routes": "/Users/runner/work/kit/kit/packages/kit/src/core/config/fixtures/default/src/routes",
"serviceWorker": "/Users/runner/work/kit/kit/packages/kit/src/core/config/fixtures/default/src/se
|
Run pnpm test:cross-platform:build
Process completed with exit code 1.
|
Loading