From 2b447c0af904aa909fc583a922905dd05de63162 Mon Sep 17 00:00:00 2001 From: Josh Black Date: Wed, 26 Feb 2020 10:35:20 -0600 Subject: [PATCH] refactor(react): revert rollup ESM and CJS entrypoints (#5444) --- packages/react/rollup.config.js | 35 +++++++++++++++------------------ 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/packages/react/rollup.config.js b/packages/react/rollup.config.js index 748234ca59da..cd0721feae3b 100644 --- a/packages/react/rollup.config.js +++ b/packages/react/rollup.config.js @@ -88,28 +88,25 @@ const umdBundleConfig = { }; module.exports = [ + // TODO: update configuration to correctly support tree-shaking for React + // components. See: + // https://github.com/carbon-design-system/carbon/issues/5442 // Generates the following bundles: // ESM: es/index.js // CommonJS: lib/index.js - { - ...baseConfig, - plugins: [ - ...baseConfig.plugins, - replace({ - 'process.env.NODE_ENV': JSON.stringify('development'), - }), - ], - output: [ - { - format: 'esm', - file: 'es/index.js', - }, - { - format: 'cjs', - file: 'lib/index.js', - }, - ], - }, + // { + // ...baseConfig, + // output: [ + // { + // format: 'esm', + // file: 'es/index.js', + // }, + // { + // format: 'cjs', + // file: 'lib/index.js', + // }, + // ], + // }, // Generate the development UMD bundle: // UMD: umd/carbon-components-react.js