From 52adb4d58476bacccb2fec8695a278678c04f1db Mon Sep 17 00:00:00 2001 From: Jinbao1001 Date: Fri, 26 Jul 2024 14:30:16 +0800 Subject: [PATCH] chore: targets default from chrome 80 to any-target --- crates/mako/src/config/config.rs | 2 +- packages/bundler-mako/index.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/mako/src/config/config.rs b/crates/mako/src/config/config.rs index 4235564af..30939222a 100644 --- a/crates/mako/src/config/config.rs +++ b/crates/mako/src/config/config.rs @@ -683,7 +683,7 @@ const DEFAULT_CONFIG: &str = r#" "providers": {}, "publicPath": "/", "inlineLimit": 10000, - "targets": { "chrome": 80 }, + "targets": {}, "less": { "theme": {}, "lesscPath": "", javascriptEnabled: true }, "define": {}, "mdx": false, diff --git a/packages/bundler-mako/index.js b/packages/bundler-mako/index.js index 86408b552..ed2db0b83 100644 --- a/packages/bundler-mako/index.js +++ b/packages/bundler-mako/index.js @@ -600,9 +600,7 @@ async function getMakoConfig(opts) { }, mode: 'development', publicPath: runtimePublicPath ? 'runtime' : publicPath || '/', - targets: targets || { - chrome: 80, - }, + targets: targets || {}, manifest, mdx: !!mdx, codeSplitting: