new build esm

This commit is contained in:
2026-04-04 14:07:21 +02:00
parent 00d114630d
commit bd63afa23b
8 changed files with 1697 additions and 263 deletions

View File

@@ -1,25 +1,10 @@
// index.js
import './src/sigpro.js';
// import './src/css/sigpro.css'; // No importes CSS en JS
import './src/sigpro.js'; // El Core
import * as Components from './src/components/index.js';
// import * as Icons from './src/core/icons.js'; // ELIMINAR
import * as Utils from './src/core/utils.js';
import { tt } from './src/core/i18n.js';
// Exportamos todo para que el Tree Shaking funcione
export * from './src/components/index.js';
// export * from './src/core/icons.js'; // ELIMINAR
export * from './src/core/utils.js';
export { tt };
if (typeof window !== 'undefined') {
Object.entries(Components).forEach(([name, component]) => {
window[name] = component;
});
// window.Icons = Icons; // ELIMINAR
window.Utils = Utils;
window.tt = tt;
window.SigProUI = { ...Components, Utils, tt };
console.log("🎨 SigProUI ready");
}
export { tt };