diff --git a/src/browser.mjs b/src/browser.mjs index 48369a0..b104b97 100644 --- a/src/browser.mjs +++ b/src/browser.mjs @@ -1,3 +1,5 @@ import * as metro from './metro.mjs' -window.metro = metro +globalThis.metro = metro + +export default metro \ No newline at end of file diff --git a/src/everything.mjs b/src/everything.mjs index 9f9f4bf..951116b 100644 --- a/src/everything.mjs +++ b/src/everything.mjs @@ -9,6 +9,6 @@ const metro = Object.assign({}, m, { } }) -window.metro = metro +globalThis.metro = metro export default metro \ No newline at end of file