Skip to content

Commit c0a0a08

Browse files
committed
feat(sass): emove official support for node-sass
BREAKING CHANGE: Remove official support for node-sass
1 parent fb110b9 commit c0a0a08

File tree

4 files changed

+65
-1677
lines changed

4 files changed

+65
-1677
lines changed

__tests__/index.test.ts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -471,20 +471,6 @@ validateMany("sass", [
471471
},
472472
},
473473
},
474-
{
475-
title: "importer-node",
476-
input: "sass-importer/index.js",
477-
options: {
478-
sass: {
479-
impl: "node-sass",
480-
sync: false,
481-
importer(url, _, done): void {
482-
if (url === "~modularvirtualimport") done({ contents: ".modularvirtual{color:blue}" });
483-
else done({ contents: ".virtual{color:red}" });
484-
},
485-
},
486-
},
487-
},
488474
{
489475
title: "importer-sync",
490476
input: "sass-importer/index.js",
@@ -498,20 +484,6 @@ validateMany("sass", [
498484
},
499485
},
500486
},
501-
{
502-
title: "importer-sync-node",
503-
input: "sass-importer/index.js",
504-
options: {
505-
sass: {
506-
impl: "node-sass",
507-
sync: true,
508-
importer(url: string): Data {
509-
if (url === "~modularvirtualimport") return { contents: ".modularvirtual{color:blue}" };
510-
return { contents: ".virtual{color:red}" };
511-
},
512-
},
513-
},
514-
},
515487
]);
516488

517489
validateMany("less", [

__tests__/utils.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ describe("load-sass", () => {
6363

6464
test("not found", async () => {
6565
jest.unstable_mockModule("sass", genericFailure);
66-
jest.unstable_mockModule("node-sass", genericFailure);
6766
return expect(async () => loadSass()).rejects.toThrowErrorMatchingSnapshot();
6867
});
6968
});

0 commit comments

Comments
 (0)