From eb6aaff43b32b458cb3c0dd17a94d12d1af8c463 Mon Sep 17 00:00:00 2001 From: cap-Bernardito Date: Sat, 10 Oct 2020 14:41:36 +0300 Subject: [PATCH] refactor: removed unused option hmr --- src/loader-options.json | 3 --- test/__snapshots__/validate-loader-options.test.js.snap | 5 ----- test/validate-loader-options.test.js | 4 ---- 3 files changed, 12 deletions(-) diff --git a/src/loader-options.json b/src/loader-options.json index 5044f33b..eb870090 100644 --- a/src/loader-options.json +++ b/src/loader-options.json @@ -15,9 +15,6 @@ "esModule": { "type": "boolean" }, - "hmr": { - "type": "boolean" - }, "modules": { "type": "object", "additionalProperties": false, diff --git a/test/__snapshots__/validate-loader-options.test.js.snap b/test/__snapshots__/validate-loader-options.test.js.snap index d9bae7f2..037f1a8b 100644 --- a/test/__snapshots__/validate-loader-options.test.js.snap +++ b/test/__snapshots__/validate-loader-options.test.js.snap @@ -5,11 +5,6 @@ exports[`validate options should throw an error on the "esModule" option with "1 - options.esModule should be a boolean." `; -exports[`validate options should throw an error on the "hmr" option with "1" value 1`] = ` -"Invalid options object. Mini CSS Extract Plugin Loader has been initialized using an options object that does not match the API schema. - - options.hmr should be a boolean." -`; - exports[`validate options should throw an error on the "modules" option with "{"namedExport":"false"}" value 1`] = ` "Invalid options object. Mini CSS Extract Plugin Loader has been initialized using an options object that does not match the API schema. - options.modules.namedExport should be a boolean. diff --git a/test/validate-loader-options.test.js b/test/validate-loader-options.test.js index 5c948f0f..ee5cb486 100644 --- a/test/validate-loader-options.test.js +++ b/test/validate-loader-options.test.js @@ -10,10 +10,6 @@ describe('validate options', () => { success: [true, false], failure: [1], }, - hmr: { - success: [true, false], - failure: [1], - }, modules: { success: [{ namedExport: true }, { namedExport: false }], failure: ['true', { namedExport: 'false' }],