From 2a3dc8c5e047811faf48ebd99254553da24012d2 Mon Sep 17 00:00:00 2001 From: bailicangdu <1264889788@qq.com> Date: Tue, 17 Aug 2021 12:03:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BD=8E=E7=89=88?= =?UTF-8?q?=E6=9C=ACNode=E5=AF=B9=E4=BA=8Erollup.config.js=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index 2b59e2a09..08a8cae4d 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -86,7 +86,7 @@ const cjsConfig = Object.assign({}, baseConfig, { // polyfill配置 const polyfillConfig = [] const polyfillFiles = fse.readdirSync('./src/polyfill') -polyfillFiles?.forEach((file) => { +polyfillFiles && polyfillFiles.forEach((file) => { if (/\.ts$/.test(file)) { const config = { input: path.join(__dirname, `src/polyfill/${file}`),