From 8afec60af7b9eee275b3c355d19e749e0cce24b1 Mon Sep 17 00:00:00 2001 From: RiESAEX <2597245950@qq.com> Date: Mon, 13 Feb 2023 08:23:20 +0000 Subject: [PATCH] revert: devtool --- .../src/plugins/commands/webpackConfig/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/fes-builder-webpack/src/plugins/commands/webpackConfig/index.js b/packages/fes-builder-webpack/src/plugins/commands/webpackConfig/index.js index d834354e..429a8009 100644 --- a/packages/fes-builder-webpack/src/plugins/commands/webpackConfig/index.js +++ b/packages/fes-builder-webpack/src/plugins/commands/webpackConfig/index.js @@ -60,7 +60,7 @@ export default async function getConfig({ api, cwd, config, env, entry = {}, mod webpackConfig.mode(env); webpackConfig.stats('errors-only'); webpackConfig.externals(config.externals || {}); - webpackConfig.devtool(false); + webpackConfig.devtool(isDev ? config.devtool || 'cheap-module-source-map' : config.devtool); // --------------- cache ----------- webpackConfig.cache({