new build esm
This commit is contained in:
23
src/bundle.js
Normal file
23
src/bundle.js
Normal file
@@ -0,0 +1,23 @@
|
||||
// src/bundle.js
|
||||
import './sigpro.js'; // Ahora sí, están en la misma carpeta
|
||||
import * as Components from './components/index.js';
|
||||
import * as Utils from './core/utils.js';
|
||||
import { tt } from './core/i18n.js';
|
||||
|
||||
if (typeof window !== 'undefined') {
|
||||
// Registramos funciones globales: Div(), Input(), tt()...
|
||||
Object.entries(Components).forEach(([name, component]) => {
|
||||
window[name] = component;
|
||||
});
|
||||
|
||||
window.Utils = Utils;
|
||||
window.tt = tt;
|
||||
window.SigProUI = { ...Components, Utils, tt };
|
||||
|
||||
console.log("🎨 SigProUI (Global Mode) ready");
|
||||
}
|
||||
|
||||
// Re-exportamos por compatibilidad
|
||||
export * from './components/index.js';
|
||||
export * from './core/utils.js';
|
||||
export { tt };
|
||||
Reference in New Issue
Block a user