mirror of
https://github.com/MichMich/MagicMirror.git
synced 2026-07-23 07:44:20 -07:00
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;
|