Skip to content

Commit 2b432e9

Browse files
refactor: removed unused option hmr (#608)
1 parent 975cfda commit 2b432e9

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

src/loader-options.json

-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
"esModule": {
1616
"type": "boolean"
1717
},
18-
"hmr": {
19-
"type": "boolean"
20-
},
2118
"modules": {
2219
"type": "object",
2320
"additionalProperties": false,

test/__snapshots__/validate-loader-options.test.js.snap

-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ exports[`validate options should throw an error on the "esModule" option with "1
55
- options.esModule should be a boolean."
66
`;
77

8-
exports[`validate options should throw an error on the "hmr" option with "1" value 1`] = `
9-
"Invalid options object. Mini CSS Extract Plugin Loader has been initialized using an options object that does not match the API schema.
10-
- options.hmr should be a boolean."
11-
`;
12-
138
exports[`validate options should throw an error on the "modules" option with "{"namedExport":"false"}" value 1`] = `
149
"Invalid options object. Mini CSS Extract Plugin Loader has been initialized using an options object that does not match the API schema.
1510
- options.modules.namedExport should be a boolean.

test/validate-loader-options.test.js

-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ describe('validate options', () => {
1010
success: [true, false],
1111
failure: [1],
1212
},
13-
hmr: {
14-
success: [true, false],
15-
failure: [1],
16-
},
1713
modules: {
1814
success: [{ namedExport: true }, { namedExport: false }],
1915
failure: ['true', { namedExport: 'false' }],

0 commit comments

Comments
 (0)