Skip to content

refactor: use explicit global config - #4233

Draft
KristjanESPERANTO wants to merge 1 commit into
MagicMirrorOrg:developfrom
KristjanESPERANTO:esm
Draft

refactor: use explicit global config#4233
KristjanESPERANTO wants to merge 1 commit into
MagicMirrorOrg:developfrom
KristjanESPERANTO:esm

Conversation

@KristjanESPERANTO

Copy link
Copy Markdown
Collaborator

This PR is another step towards ESM.

The browser core and default modules now access the global configuration explicitly through globalThis.config.

This change does not break compatibility with classic or third-party modules. The global configuration remains available, so existing modules can continue to work while the core gradually moves towards explicit/clearer ESM dependencies.

Comment thread js/main.js
Log.setLogLevel(globalThis.config.logLevel);

await Translator.loadCoreTranslations(config.language);
await Translator.loadCoreTranslations(globalThis.config.language);
@KristjanESPERANTO
KristjanESPERANTO marked this pull request as draft August 21, 2026 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants