From e3a768ed75605ed3c6ba0b13a3fc90c47728603f Mon Sep 17 00:00:00 2001 From: mertsincan Date: Fri, 12 May 2023 12:00:40 +0100 Subject: [PATCH] Update rollup config --- components/lib/componentbase/package.json | 6 ++++++ rollup.config.js | 1 + 2 files changed, 7 insertions(+) create mode 100644 components/lib/componentbase/package.json diff --git a/components/lib/componentbase/package.json b/components/lib/componentbase/package.json new file mode 100644 index 0000000000..384e683a02 --- /dev/null +++ b/components/lib/componentbase/package.json @@ -0,0 +1,6 @@ +{ + "main": "./componentbase.cjs.js", + "module": "./componentbase.esm.js", + "unpkg": "./componentbase.min.js", + "sideEffects": false +} diff --git a/rollup.config.js b/rollup.config.js index 22a62010e6..e4e6005bd4 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -68,6 +68,7 @@ const ALIAS_ICON_COMPONENT_ENTRIES = [ const ALIAS_COMPONENT_ENTRIES = [ { find: '../utils/Utils', replacement: 'primereact/utils' }, { find: '../api/Api', replacement: 'primereact/api' }, + { find: '../componentbase/ComponentBase', replacement: 'primereact/componentbase' }, { find: '../hooks/Hooks', replacement: 'primereact/hooks' }, { find: '../ripple/Ripple', replacement: 'primereact/ripple' }, { find: '../csstransition/CSSTransition', replacement: 'primereact/csstransition' },