You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Situation: I've got modules "a.js" and "b.js", import-mapped under "a" and "b" respectively. Both of these modules import an object from "./common.js", and expose it on window.common_a and window.common_b (just for debugging).
... then in Safari and Firefox (polyfilled import maps), the console.log expression evalautes to false, i.e., the supposedly shared common object actually ends up being different in a and b.
In Chrome, it works as expected:
In a real situation, "a" is ReactDOM, "b" is a React component, and "common" is React, which means trouble 😄
The text was updated successfully, but these errors were encountered:
Minimal repro: esm-shims-1.3-issue.zip. Downgrading to 1.2 fixes the issue.
Situation: I've got modules "a.js" and "b.js", import-mapped under "a" and "b" respectively. Both of these modules import an object from "./common.js", and expose it on
window.common_a
andwindow.common_b
(just for debugging).If I do:
... then in Safari and Firefox (polyfilled import maps), the console.log expression evalautes to false, i.e., the supposedly shared common object actually ends up being different in a and b.
In Chrome, it works as expected:
In a real situation, "a" is ReactDOM, "b" is a React component, and "common" is React, which means trouble 😄
The text was updated successfully, but these errors were encountered: