Skip to content

Commit 863be9d

Browse files
renovate[bot]chenjiahanh-a-n-a
authored
chore(deps): update dependency sass-loader to v14 (#6430)
* chore(deps): update dependency sass-loader to v14 * test: update --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: neverland <[email protected]> Co-authored-by: Hana <[email protected]>
1 parent 254b03b commit 863be9d

File tree

4 files changed

+32
-15
lines changed

4 files changed

+32
-15
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = [/SassError: Undefined variable./];
1+
module.exports = [/Module build failed/];
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
const fs = require("fs");
2-
const path = require("path");
3-
41
it("build error module should have 'throw error'", () => {
5-
expect(() => require("./index.scss")).toThrow("SassError");
6-
const output = fs.readFileSync(
7-
path.resolve(__dirname, "bundle0.js"),
8-
"utf-8"
9-
);
10-
let scssCode = /throw new Error\("((?:\s|.)*?)"\)/.exec(output)[1];
11-
expect(scssCode).toContain("SassError");
12-
expect(scssCode).toContain("Module build failed");
2+
expect(() => require("./index.scss")).toThrow("Module build failed");
133
});

packages/rspack/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"pug-loader": "^2.4.0",
7272
"react-relay": "^16.0.0",
7373
"sass": "1.56.2",
74-
"sass-loader": "13.2.0",
74+
"sass-loader": "14.2.1",
7575
"source-map": "^0.7.4",
7676
"source-map-loader": "^5.0.0",
7777
"styled-components": "^6.0.8",

pnpm-lock.yaml

+29-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)