new build esm
This commit is contained in:
21
index.js
21
index.js
@@ -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 };
|
||||
Reference in New Issue
Block a user