Skip to content

refactor: replace Loader object with named exports#4195

Open
KristjanESPERANTO wants to merge 1 commit into
MagicMirrorOrg:developfrom
KristjanESPERANTO:loader
Open

refactor: replace Loader object with named exports#4195
KristjanESPERANTO wants to merge 1 commit into
MagicMirrorOrg:developfrom
KristjanESPERANTO:loader

Conversation

@KristjanESPERANTO

Copy link
Copy Markdown
Collaborator

This PR removes the Loader wrapper object and switches to direct named exports (loadModules, loadFileForModule).
It keeps behavior the same, but makes the API simpler and more idiomatic for ESM.

This was reported in a PR comment by github-code-quality here #4194 (review).

Comment thread js/main.js Dismissed
Comment thread js/module.js Dismissed
@KristjanESPERANTO KristjanESPERANTO changed the title refactor(loader): replace Loader object with named exports refactor: replace Loader object with named exports Jul 1, 2026
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