improvements

This commit is contained in:
Rene
2021-02-14 22:57:28 +01:00
parent 2f6468a6b3
commit af99cfa97c
30 changed files with 375 additions and 18 deletions
+2 -1
View File
@@ -228,6 +228,7 @@ const rollupConfig = (config = {}, { project = process.cwd(), overwrite = {}, si
...(esm ? esmBabelConfig : legacyBabelConfig),
babelHelpers: 'runtime',
extensions: resolve.extensions,
shouldPrintComment: () => false,
caller: {
name: 'babel-rollup-build',
},
@@ -259,7 +260,7 @@ const rollupConfig = (config = {}, { project = process.cwd(), overwrite = {}, si
}),
],
}
: []
: {}
),
external: [...Object.keys(devDependencies), ...Object.keys(peerDependencies), ...((Array.isArray(external) && external) || [])],
plugins: pipeline.reduce((arr, item) => {