Skip to content

Commit

Permalink
fix: 修复低版本Node对于rollup.config.js执行错误的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
bailicangdu committed Aug 17, 2021
1 parent e7b1839 commit 2a3dc8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`),
Expand Down

0 comments on commit 2a3dc8c

Please sign in to comment.