refactor(rollup): use one babel config for examples and lib

This commit is contained in:
moklick
2021-01-11 10:33:10 +01:00
parent 345283c878
commit 6c4d4985d2
5 changed files with 23 additions and 19 deletions
+3 -3
View File
@@ -24,6 +24,7 @@ const rollupConfig = {
],
plugins: [
replace({
'process.env.NODE_ENV': isProd ? JSON.stringify('production') : JSON.stringify('development'),
'process.env.FORCE_SIMILAR_INSTEAD_OF_MAP': 'false',
}),
postcss({
@@ -34,8 +35,7 @@ const rollupConfig = {
}),
babel({
exclude: 'node_modules/**',
babelHelpers: 'bundled',
plugins: [],
babelHelpers: 'runtime',
}),
resolve(),
commonjs({
@@ -51,4 +51,4 @@ const rollupConfig = {
],
};
export default rollupConfig; // isTesting ? rollupConfig : [libraryRollupConfig, rollupConfig];
export default isTesting ? rollupConfig : [libraryRollupConfig, rollupConfig];