Update rollup

pull/5507/head
mertsincan 2024-04-01 10:49:35 +01:00
parent 194c301b7a
commit 546dbbf25f
2 changed files with 8 additions and 1 deletions

View File

@ -221,6 +221,9 @@ export default {
}, },
alias: { alias: {
'primevue/utils': path.resolve(__dirname, './components/lib/utils/Utils.js'), 'primevue/utils': path.resolve(__dirname, './components/lib/utils/Utils.js'),
'primevue/config': path.resolve(__dirname, './components/lib/config/PrimeVue.js'),
'primevue/styled': path.resolve(__dirname, './components/lib/styled/PrimeVueStyled.js'),
'primevue/unstyled': path.resolve(__dirname, './components/lib/unstyled/PrimeVueUnstyled.js'),
'primevue/api': path.resolve(__dirname, './components/lib/api/Api.js'), 'primevue/api': path.resolve(__dirname, './components/lib/api/Api.js'),
...STYLE_ALIAS, ...STYLE_ALIAS,
...THEME_ALIAS, ...THEME_ALIAS,

View File

@ -229,6 +229,8 @@ const CORE_DEPENDENCIES = {
'primevue/utils': 'primevue.utils', 'primevue/utils': 'primevue.utils',
'primevue/api': 'primevue.api', 'primevue/api': 'primevue.api',
'primevue/config': 'primevue.config', 'primevue/config': 'primevue.config',
'primevue/styled': 'primevue.styled',
'primevue/unstyled': 'primevue.unstyled',
'primevue/base': 'primevue.base', 'primevue/base': 'primevue.base',
'primevue/usestyle': 'primevue.usestyle', 'primevue/usestyle': 'primevue.usestyle',
...CORE_STYLE_DEPENDENCIES, ...CORE_STYLE_DEPENDENCIES,
@ -309,7 +311,7 @@ const TERSER_PLUGIN_OPTIONS = {
const PLUGINS = [vue(), postcss(POSTCSS_PLUGIN_OPTIONS), babel(BABEL_PLUGIN_OPTIONS)]; const PLUGINS = [vue(), postcss(POSTCSS_PLUGIN_OPTIONS), babel(BABEL_PLUGIN_OPTIONS)];
function addEntry(folder, inFile, outFile) { function addEntry(folder, inFile, outFile) {
const exports = inFile === 'PrimeVue.js' || folder === 'passthrough/tailwind' ? 'named' : 'auto'; const exports = inFile.startsWith('PrimeVue') || folder === 'passthrough/tailwind' ? 'named' : 'auto';
const useCorePlugin = Object.keys(GLOBAL_COMPONENT_DEPENDENCIES).some((d) => d.replace('primevue/', '') === folder); const useCorePlugin = Object.keys(GLOBAL_COMPONENT_DEPENDENCIES).some((d) => d.replace('primevue/', '') === folder);
const plugins = PLUGINS; const plugins = PLUGINS;
const external = EXTERNAL_COMPONENT; const external = EXTERNAL_COMPONENT;
@ -500,6 +502,8 @@ function addDirectives() {
function addConfig() { function addConfig() {
addEntry('config', 'PrimeVue.js', 'config'); addEntry('config', 'PrimeVue.js', 'config');
addEntry('styled', 'PrimeVueStyled.js', 'primevuestyled');
addEntry('unstyled', 'PrimeVueUnstyled.js', 'primevueunstyled');
} }
function addPassThrough() { function addPassThrough() {