diff --git a/cmake/tools/SetupWebKit.cmake b/cmake/tools/SetupWebKit.cmake index 22f4ed8cfe..ff750a9631 100644 --- a/cmake/tools/SetupWebKit.cmake +++ b/cmake/tools/SetupWebKit.cmake @@ -2,7 +2,7 @@ option(WEBKIT_VERSION "The version of WebKit to use") option(WEBKIT_LOCAL "If a local version of WebKit should be used instead of downloading") if(NOT WEBKIT_VERSION) - set(WEBKIT_VERSION 0a0a3838e5fab36b579df26620237bb62ed6d950) + set(WEBKIT_VERSION 019ff6e1e879ff4533f2a857cab5028b6b95ab53) endif() if(WEBKIT_LOCAL) diff --git a/test/bun.lockb b/test/bun.lockb index c6449d11b3..37e3ded110 100755 Binary files a/test/bun.lockb and b/test/bun.lockb differ diff --git a/test/integration/sass/__snapshots__/sass.test.ts.snap b/test/integration/sass/__snapshots__/sass.test.ts.snap new file mode 100644 index 0000000000..5160965305 --- /dev/null +++ b/test/integration/sass/__snapshots__/sass.test.ts.snap @@ -0,0 +1,40 @@ +// Bun Snapshot v1, https://goo.gl/fbAQLP + +exports[`sass source maps 1`] = ` +{ + "css": +".ruleGroup { + display: flex; + flex-direction: column; + gap: 0.5rem; + padding: 0.5rem; + border-width: 1px; +}" +, + "loadedUrls": [], +} +`; + +exports[`sass source maps 2`] = ` +{ + "css": +".ruleGroup { + display: flex; + flex-direction: column; + gap: 0.5rem; + padding: 0.5rem; + border-width: 1px; +}" +, + "loadedUrls": [], + "sourceMap": { + "mappings": "AAAA;EACI;EACA;EACA;EACA;EACA", + "names": [], + "sourceRoot": "", + "sources": [ + "data:;charset=utf-8,.ruleGroup%20%7B%0A%20%20%20%20display:%20flex;%0A%20%20%20%20flex-direction:%20column;%0A%20%20%20%20gap:%200.5rem;%0A%20%20%20%20padding:%200.5rem;%0A%20%20%20%20border-width:%201px;%0A%20%20%7D%0A%20%20", + ], + "version": 3, + }, +} +`; diff --git a/test/integration/sass/sass.test.ts b/test/integration/sass/sass.test.ts new file mode 100644 index 0000000000..f5520a6f22 --- /dev/null +++ b/test/integration/sass/sass.test.ts @@ -0,0 +1,15 @@ +import { compileString } from "sass"; + +test("sass source maps", () => { + const scssString = `.ruleGroup { + display: flex; + flex-direction: column; + gap: 0.5rem; + padding: 0.5rem; + border-width: 1px; + } + `; + + expect(compileString(scssString, { sourceMap: false })).toMatchSnapshot(); + expect(compileString(scssString, { sourceMap: true })).toMatchSnapshot(); +}); diff --git a/test/package.json b/test/package.json index 7406bf4486..e7d73be1ef 100644 --- a/test/package.json +++ b/test/package.json @@ -19,13 +19,13 @@ "@types/ws": "8.5.10", "aws-cdk-lib": "2.148.0", "axios": "1.6.8", - "https-proxy-agent": "7.0.5", "body-parser": "1.20.2", "comlink": "4.4.1", "es-module-lexer": "1.3.0", "esbuild": "0.18.6", "express": "4.18.2", "fast-glob": "3.3.1", + "https-proxy-agent": "7.0.5", "iconv-lite": "0.6.3", "isbot": "5.1.13", "jest-extended": "4.0.0", @@ -47,6 +47,7 @@ "prompts": "2.4.2", "reflect-metadata": "0.1.13", "rollup": "4.4.1", + "sass": "1.79.4", "sharp": "0.33.0", "sinon": "6.0.0", "socket.io": "4.7.1",