This commit is contained in:
14
index.js
14
index.js
@@ -9,4 +9,16 @@ export const Components = {
|
||||
|
||||
export const Utils = {
|
||||
Locale, tt
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
if (typeof window !== 'undefined') {
|
||||
Object.entries({ ...Components, ...Utils }).forEach(([name, value]) => {
|
||||
Object.defineProperty(window, name, {
|
||||
value,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
enumerable: true
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user