mirror of
https://github.com/MichMich/MagicMirror.git
synced 2026-07-01 04:19:33 -07:00
dbc7a574eb
With SunCalc v2 we have to point the browser vendor mapping to the new CJS bundle.
9 lines
313 B
JavaScript
9 lines
313 B
JavaScript
/*
|
|
* Bridge for SunCalc v2 (ESM-only entry):
|
|
* default modules still expect a global `SunCalc` from getScripts()/vendor loading.
|
|
* Keep this as a tiny compatibility shim until the module loader is fully ESM-first.
|
|
*/
|
|
import * as SunCalc from "../node_modules/suncalc/index.js";
|
|
|
|
globalThis.SunCalc = SunCalc;
|