This commit is contained in:
14
index.js
14
index.js
@@ -1,20 +1,10 @@
|
||||
import * as All from './sigpro-ui.js';
|
||||
import * as Editor from './sigpro-editor.js';
|
||||
import { Locale, tt } from './sigpro-locale.js';
|
||||
import { hide, get } from './sigpro-helpers.js';
|
||||
|
||||
export const Components = {
|
||||
...All,
|
||||
...Editor,
|
||||
};
|
||||
|
||||
export const Utils = {
|
||||
Locale, tt, hide, get
|
||||
};
|
||||
export const Components = { ...All };
|
||||
|
||||
|
||||
if (typeof window !== 'undefined') {
|
||||
Object.entries({ ...Components, ...Utils }).forEach(([name, value]) => {
|
||||
Object.entries({ ...Components}).forEach(([name, value]) => {
|
||||
Object.defineProperty(window, name, {
|
||||
value,
|
||||
writable: false,
|
||||
|
||||
Reference in New Issue
Block a user