Skip to content

refactor(server): migrate watcher to ESM - #4308

Merged
khassel merged 1 commit into
MagicMirrorOrg:developfrom
KristjanESPERANTO:esm
Oct 20, 2026
Merged

khassel merged 1 commit into
MagicMirrorOrg:developfrom
KristjanESPERANTO:esm

Conversation

@KristjanESPERANTO

Copy link
Copy Markdown
Collaborator

Follow-up to #4305.

This migrates the server watcher to ESM. Some of the changes are required to satisfy the different ESLint rules applied to .mjs files.

@khassel
khassel merged commit 2472e86 into MagicMirrorOrg:develop Oct 20, 2026
13 checks passed
@KristjanESPERANTO
KristjanESPERANTO deleted the esm branch October 20, 2026 19:31
khassel pushed a commit that referenced this pull request Oct 24, 2026
Follow-up to #4308.

I've converted `app.js` to `app.mjs`. So the core app now runs as ESM,
which is an important step in the migration. Electron and the
server-only entry still use CommonJS and load the app with `import()`. I
would tackle them in one of the next steps.

I also updated the logger to recognize `.mjs` and `.cjs` files.
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