From c29f705bd876e45badf8c45465a9fb3365d5844a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=87=E7=BA=AF?= Date: Fri, 5 Feb 2021 14:12:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20hardSourcePlugin=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fes-preset-built-in/src/plugins/features/hardSource.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/fes-preset-built-in/src/plugins/features/hardSource.js b/packages/fes-preset-built-in/src/plugins/features/hardSource.js index 465eb318..520a2332 100644 --- a/packages/fes-preset-built-in/src/plugins/features/hardSource.js +++ b/packages/fes-preset-built-in/src/plugins/features/hardSource.js @@ -23,7 +23,7 @@ export default (api) => { environmentHash: { root: cwd, files: ['package-lock.json', 'yarn.lock'].concat( - Array.isArray(configFiles) ? configFiles : [configFiles] + Array.isArray(configFiles) ? configFiles : [] ) }, ...api.config.hardSource || {}