diff --git a/crates/mako/test/build/side-effects-flag/mako.config.json b/crates/mako/test/build/side-effects-flag/mako.config.json index e5d67ed74..a7c7fa1de 100644 --- a/crates/mako/test/build/side-effects-flag/mako.config.json +++ b/crates/mako/test/build/side-effects-flag/mako.config.json @@ -1,5 +1,5 @@ { "mode": "production", "minify": false, - "hmr": false + "hmr": null } diff --git a/crates/mako/test/config/define/mako.config.json b/crates/mako/test/config/define/mako.config.json index b3dc87a40..e43675799 100644 --- a/crates/mako/test/config/define/mako.config.json +++ b/crates/mako/test/config/define/mako.config.json @@ -14,5 +14,5 @@ "MEMBER_NAMES": [{ "name": "\"sorrycc\"" }, { "name": "\"xiaohuoni\"" }], "EXIT": true }, - "hmr": false + "hmr": null } diff --git a/crates/mako/test/config/normal/mako.config.json b/crates/mako/test/config/normal/mako.config.json index e684cdc09..5ef80828d 100644 --- a/crates/mako/test/config/normal/mako.config.json +++ b/crates/mako/test/config/normal/mako.config.json @@ -1,4 +1,4 @@ { "platform": "node", - "hmr": false + "hmr": null } diff --git a/e2e/fixtures/config.manifest.config/mako.config.json b/e2e/fixtures/config.manifest.config/mako.config.json index c4d219457..fbcd18806 100644 --- a/e2e/fixtures/config.manifest.config/mako.config.json +++ b/e2e/fixtures/config.manifest.config/mako.config.json @@ -1,5 +1,5 @@ { - "manifest": true, + "manifest": {}, "manifestConfig": { "fileName": "manifest.json", "basePath": "aaa" diff --git a/e2e/fixtures/tree-shaking-esm-mix-cjs_COULD_BE_IMPROVED/mako.config.json b/e2e/fixtures/tree-shaking-esm-mix-cjs_COULD_BE_IMPROVED/mako.config.json index a553c1a78..19ed06124 100644 --- a/e2e/fixtures/tree-shaking-esm-mix-cjs_COULD_BE_IMPROVED/mako.config.json +++ b/e2e/fixtures/tree-shaking-esm-mix-cjs_COULD_BE_IMPROVED/mako.config.json @@ -1,6 +1,6 @@ { "mode": "production", "minify": false, - "hmr": false, + "hmr": null, "treeShake": "basic" } diff --git a/e2e/fixtures/tree-shaking-esm-mix-non-sideeffects-cjs/mako.config.json b/e2e/fixtures/tree-shaking-esm-mix-non-sideeffects-cjs/mako.config.json index a553c1a78..19ed06124 100644 --- a/e2e/fixtures/tree-shaking-esm-mix-non-sideeffects-cjs/mako.config.json +++ b/e2e/fixtures/tree-shaking-esm-mix-non-sideeffects-cjs/mako.config.json @@ -1,6 +1,6 @@ { "mode": "production", "minify": false, - "hmr": false, + "hmr": null, "treeShake": "basic" } diff --git a/e2e/fixtures/tree-shaking-esm-mix-sideeffects-cjs-2/mako.config.json b/e2e/fixtures/tree-shaking-esm-mix-sideeffects-cjs-2/mako.config.json index a553c1a78..19ed06124 100644 --- a/e2e/fixtures/tree-shaking-esm-mix-sideeffects-cjs-2/mako.config.json +++ b/e2e/fixtures/tree-shaking-esm-mix-sideeffects-cjs-2/mako.config.json @@ -1,6 +1,6 @@ { "mode": "production", "minify": false, - "hmr": false, + "hmr": null, "treeShake": "basic" } diff --git a/e2e/fixtures/tree-shaking-export-all/mako.config.json b/e2e/fixtures/tree-shaking-export-all/mako.config.json index a553c1a78..19ed06124 100644 --- a/e2e/fixtures/tree-shaking-export-all/mako.config.json +++ b/e2e/fixtures/tree-shaking-export-all/mako.config.json @@ -1,6 +1,6 @@ { "mode": "production", "minify": false, - "hmr": false, + "hmr": null, "treeShake": "basic" } diff --git a/e2e/fixtures/tree-shaking/mako.config.json b/e2e/fixtures/tree-shaking/mako.config.json index a553c1a78..19ed06124 100644 --- a/e2e/fixtures/tree-shaking/mako.config.json +++ b/e2e/fixtures/tree-shaking/mako.config.json @@ -1,6 +1,6 @@ { "mode": "production", "minify": false, - "hmr": false, + "hmr": null, "treeShake": "basic" } diff --git a/e2e/fixtures/tree-shaking_class/mako.config.json b/e2e/fixtures/tree-shaking_class/mako.config.json index e4ce9b552..fda0c0e4a 100644 --- a/e2e/fixtures/tree-shaking_class/mako.config.json +++ b/e2e/fixtures/tree-shaking_class/mako.config.json @@ -1,4 +1,4 @@ { "minify": false, - "hmr": false + "hmr": null } diff --git a/e2e/fixtures/tree-shaking_dynamic-import_WHY_ADD_THIS/mako.config.json b/e2e/fixtures/tree-shaking_dynamic-import_WHY_ADD_THIS/mako.config.json index e5d67ed74..a7c7fa1de 100644 --- a/e2e/fixtures/tree-shaking_dynamic-import_WHY_ADD_THIS/mako.config.json +++ b/e2e/fixtures/tree-shaking_dynamic-import_WHY_ADD_THIS/mako.config.json @@ -1,5 +1,5 @@ { "mode": "production", "minify": false, - "hmr": false + "hmr": null } diff --git a/e2e/fixtures/tree-shaking_export_default/mako.config.json b/e2e/fixtures/tree-shaking_export_default/mako.config.json index c2b789458..c0d58a23f 100644 --- a/e2e/fixtures/tree-shaking_export_default/mako.config.json +++ b/e2e/fixtures/tree-shaking_export_default/mako.config.json @@ -1,7 +1,7 @@ { "mode": "production", "minify": false, - "hmr": false, + "hmr": null, "optimizePackageImports": false, "optimization": { "skipModules": false diff --git a/e2e/fixtures/tree-shaking_export_namespace.failed/mako.config.json b/e2e/fixtures/tree-shaking_export_namespace.failed/mako.config.json index e5d67ed74..a7c7fa1de 100644 --- a/e2e/fixtures/tree-shaking_export_namespace.failed/mako.config.json +++ b/e2e/fixtures/tree-shaking_export_namespace.failed/mako.config.json @@ -1,5 +1,5 @@ { "mode": "production", "minify": false, - "hmr": false + "hmr": null } diff --git a/e2e/fixtures/tree-shaking_exported/mako.config.json b/e2e/fixtures/tree-shaking_exported/mako.config.json index a553c1a78..19ed06124 100644 --- a/e2e/fixtures/tree-shaking_exported/mako.config.json +++ b/e2e/fixtures/tree-shaking_exported/mako.config.json @@ -1,6 +1,6 @@ { "mode": "production", "minify": false, - "hmr": false, + "hmr": null, "treeShake": "basic" } diff --git a/e2e/fixtures/tree-shaking_fn/mako.config.json b/e2e/fixtures/tree-shaking_fn/mako.config.json index e5d67ed74..a7c7fa1de 100644 --- a/e2e/fixtures/tree-shaking_fn/mako.config.json +++ b/e2e/fixtures/tree-shaking_fn/mako.config.json @@ -1,5 +1,5 @@ { "mode": "production", "minify": false, - "hmr": false + "hmr": null } diff --git a/e2e/fixtures/tree-shaking_import_multi.failed.todo/mako.config.json b/e2e/fixtures/tree-shaking_import_multi.failed.todo/mako.config.json index a553c1a78..19ed06124 100644 --- a/e2e/fixtures/tree-shaking_import_multi.failed.todo/mako.config.json +++ b/e2e/fixtures/tree-shaking_import_multi.failed.todo/mako.config.json @@ -1,6 +1,6 @@ { "mode": "production", "minify": false, - "hmr": false, + "hmr": null, "treeShake": "basic" } diff --git a/e2e/fixtures/tree-shaking_import_self/mako.config.json b/e2e/fixtures/tree-shaking_import_self/mako.config.json index c51556c5d..d4c4e1a31 100644 --- a/e2e/fixtures/tree-shaking_import_self/mako.config.json +++ b/e2e/fixtures/tree-shaking_import_self/mako.config.json @@ -1,6 +1,6 @@ { "mode": "production", "minify": false, - "hmr": false, + "hmr": null, "codeSplitting": "none" } diff --git a/e2e/fixtures/tree-shaking_issues_271/mako.config.json b/e2e/fixtures/tree-shaking_issues_271/mako.config.json index e0d8a3d5a..6071166e8 100644 --- a/e2e/fixtures/tree-shaking_issues_271/mako.config.json +++ b/e2e/fixtures/tree-shaking_issues_271/mako.config.json @@ -1,5 +1,5 @@ { "mode": "production", - "hmr": false, + "hmr": null, "minify":false } diff --git a/e2e/fixtures/tree-shaking_jsx_WHY_ADD_THIS/mako.config.json b/e2e/fixtures/tree-shaking_jsx_WHY_ADD_THIS/mako.config.json index 5442c91d4..ffc8e3d30 100644 --- a/e2e/fixtures/tree-shaking_jsx_WHY_ADD_THIS/mako.config.json +++ b/e2e/fixtures/tree-shaking_jsx_WHY_ADD_THIS/mako.config.json @@ -1,4 +1,4 @@ { "mode": "production", - "hmr": false + "hmr": null } diff --git a/e2e/fixtures/tree-shaking_named_export/mako.config.json b/e2e/fixtures/tree-shaking_named_export/mako.config.json index e5d67ed74..a7c7fa1de 100644 --- a/e2e/fixtures/tree-shaking_named_export/mako.config.json +++ b/e2e/fixtures/tree-shaking_named_export/mako.config.json @@ -1,5 +1,5 @@ { "mode": "production", "minify": false, - "hmr": false + "hmr": null } diff --git a/e2e/fixtures/tree-shaking_named_reexport/mako.config.json b/e2e/fixtures/tree-shaking_named_reexport/mako.config.json index e5d67ed74..a7c7fa1de 100644 --- a/e2e/fixtures/tree-shaking_named_reexport/mako.config.json +++ b/e2e/fixtures/tree-shaking_named_reexport/mako.config.json @@ -1,5 +1,5 @@ { "mode": "production", "minify": false, - "hmr": false + "hmr": null } diff --git a/e2e/fixtures/tree-shaking_reexport/mako.config.json b/e2e/fixtures/tree-shaking_reexport/mako.config.json index e5d67ed74..a7c7fa1de 100644 --- a/e2e/fixtures/tree-shaking_reexport/mako.config.json +++ b/e2e/fixtures/tree-shaking_reexport/mako.config.json @@ -1,5 +1,5 @@ { "mode": "production", "minify": false, - "hmr": false + "hmr": null } diff --git a/e2e/fixtures/tree-shaking_require_esm/mako.config.json b/e2e/fixtures/tree-shaking_require_esm/mako.config.json index a553c1a78..19ed06124 100644 --- a/e2e/fixtures/tree-shaking_require_esm/mako.config.json +++ b/e2e/fixtures/tree-shaking_require_esm/mako.config.json @@ -1,6 +1,6 @@ { "mode": "production", "minify": false, - "hmr": false, + "hmr": null, "treeShake": "basic" } diff --git a/e2e/fixtures/tree-shaking_require_self/mako.config.json b/e2e/fixtures/tree-shaking_require_self/mako.config.json index e4ce9b552..fda0c0e4a 100644 --- a/e2e/fixtures/tree-shaking_require_self/mako.config.json +++ b/e2e/fixtures/tree-shaking_require_self/mako.config.json @@ -1,4 +1,4 @@ { "minify": false, - "hmr": false + "hmr": null } diff --git a/e2e/fixtures/tree-shaking_side_effect/mako.config.json b/e2e/fixtures/tree-shaking_side_effect/mako.config.json index e5d67ed74..a7c7fa1de 100644 --- a/e2e/fixtures/tree-shaking_side_effect/mako.config.json +++ b/e2e/fixtures/tree-shaking_side_effect/mako.config.json @@ -1,5 +1,5 @@ { "mode": "production", "minify": false, - "hmr": false + "hmr": null } diff --git a/e2e/fixtures/tree-shaking_style.failed/mako.config.json b/e2e/fixtures/tree-shaking_style.failed/mako.config.json index e5d67ed74..a7c7fa1de 100644 --- a/e2e/fixtures/tree-shaking_style.failed/mako.config.json +++ b/e2e/fixtures/tree-shaking_style.failed/mako.config.json @@ -1,5 +1,5 @@ { "mode": "production", "minify": false, - "hmr": false + "hmr": null } diff --git a/examples/import-resources/mako.config.json b/examples/import-resources/mako.config.json index 37d48581a..8c9bc381e 100644 --- a/examples/import-resources/mako.config.json +++ b/examples/import-resources/mako.config.json @@ -2,7 +2,7 @@ "inlineLimit": 0, "stats": true, "mdx": true, - "manifest": true, + "manifest": {}, "manifestConfig": { "fileName": "manifest.json", "basePath": "aaa" diff --git a/examples/tree-shaking/mako.config.json b/examples/tree-shaking/mako.config.json index b320d7305..ad75f89ed 100644 --- a/examples/tree-shaking/mako.config.json +++ b/examples/tree-shaking/mako.config.json @@ -5,7 +5,7 @@ "index": "./index.js" }, "minify": false, - "hmr": false, + "hmr": null, "codeSplitting": "none", "define": { "NODE_ENV": "'production'"