Skip to content

Commit 05b4d49

Browse files
authored
test: update snapshot (#14)
1 parent 6181eb1 commit 05b4d49

File tree

22 files changed

+145
-143
lines changed

22 files changed

+145
-143
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"use strict";
22
(self["webpackChunk"] = self["webpackChunk"] || []).push([["async"], {
3-
"./async.css": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3+
"./async.css"(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
44
__webpack_require__.r(__webpack_exports__);
55
// extracted by css-extract-rspack-plugin
66

77

8-
}),
8+
},
99

1010
}]);

css-extract/cases/dependOn-multiple-files-per-entry/expected/entry1.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
"use strict";
22
(self["webpackChunk"] = self["webpackChunk"] || []).push([["entry1"], {
3-
"./entryA.js": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3+
"./entryA.js"(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
44
__webpack_require__.r(__webpack_exports__);
55
/* import */ var _styleA_css__rspack_import_0 = __webpack_require__("./styleA.css");
66

77

88

9-
}),
10-
"./entryB.js": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
9+
},
10+
"./entryB.js"(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1111
__webpack_require__.r(__webpack_exports__);
1212
/* import */ var _styleB_css__rspack_import_0 = __webpack_require__("./styleB.css");
1313

1414

1515

16-
}),
17-
"./styleA.css": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
16+
},
17+
"./styleA.css"(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1818
__webpack_require__.r(__webpack_exports__);
1919
// extracted by css-extract-rspack-plugin
2020

2121

22-
}),
23-
"./styleB.css": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
22+
},
23+
"./styleB.css"(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2424
__webpack_require__.r(__webpack_exports__);
2525
// extracted by css-extract-rspack-plugin
2626

2727

28-
}),
28+
},
2929

3030
},function(__webpack_require__) {
3131
var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId) }

css-extract/cases/dependOn-multiple-files-per-entry/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ const fs = require("fs");
22
const path = require("path");
33
module.exports = function (outputDirectory, _stats) {
44
const mainContent = fs.readFileSync(path.resolve(outputDirectory, "common.js"), "utf8");
5-
expect(mainContent).toContain(`"./styleC.css": (function `);
6-
expect(mainContent).toContain(`"./styleD.css": (function `);
5+
expect(mainContent).toContain(`"./styleC.css"(`);
6+
expect(mainContent).toContain(`"./styleD.css"(`);
77
};

css-extract/cases/dependOn/expected/entry1.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
"use strict";
22
(self["webpackChunk"] = self["webpackChunk"] || []).push([["entry1"], {
3-
"./entryA.js": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3+
"./entryA.js"(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
44
__webpack_require__.r(__webpack_exports__);
55
/* import */ var _styleA_css__rspack_import_0 = __webpack_require__("./styleA.css");
66

77

88

9-
}),
10-
"./styleA.css": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
9+
},
10+
"./styleA.css"(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1111
__webpack_require__.r(__webpack_exports__);
1212
// extracted by css-extract-rspack-plugin
1313

1414

15-
}),
15+
},
1616

1717
},function(__webpack_require__) {
1818
var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId) }

css-extract/cases/dependOn/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ const fs = require("fs");
22
const path = require("path");
33
module.exports = function (outputDirectory, _stats) {
44
const mainContent = fs.readFileSync(path.resolve(outputDirectory, "common.js"), "utf8");
5-
expect(mainContent).toContain(`"./styleB.css": (function `);
5+
expect(mainContent).toContain(`"./styleB.css"(`);
66
};
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"use strict";
22
(self["webpackChunk"] = self["webpackChunk"] || []).push([["src_inject_css"], {
3-
"./src/inject.css": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3+
"./src/inject.css"(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
44
__webpack_require__.r(__webpack_exports__);
55
// extracted by css-extract-rspack-plugin
66

77

8-
}),
8+
},
99

1010
}]);
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"use strict";
22
(self["webpackChunk"] = self["webpackChunk"] || []).push([["src_inject_css"], {
3-
"./src/inject.css": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3+
"./src/inject.css"(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
44
__webpack_require__.r(__webpack_exports__);
55
// extracted by css-extract-rspack-plugin
66

77

8-
}),
8+
},
99

1010
}]);
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"use strict";
22
(self["webpackChunk"] = self["webpackChunk"] || []).push([["src_inject_css"], {
3-
"./src/inject.css": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3+
"./src/inject.css"(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
44
__webpack_require__.r(__webpack_exports__);
55
// extracted by css-extract-rspack-plugin
66

77

8-
}),
8+
},
99

1010
}]);
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"use strict";
22
(self["webpackChunk"] = self["webpackChunk"] || []).push([["async"], {
3-
"./async.css": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3+
"./async.css"(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
44
__webpack_require__.r(__webpack_exports__);
55
// extracted by css-extract-rspack-plugin
66

77

8-
}),
8+
},
99

1010
}]);
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"use strict";
22
(self["webpackChunk"] = self["webpackChunk"] || []).push([["a"], {
3-
"./a.css": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3+
"./a.css"(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
44
__webpack_require__.r(__webpack_exports__);
55
// extracted by css-extract-rspack-plugin
66

77

8-
}),
8+
},
99

1010
}]);

0 commit comments

Comments
 (0)