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
[ES6] Only use import.meta when strictly necessary (#8940)
A webworker ES6 module doesn't have access to 'document.currentScript'. 'import.meta' was the only way I could see to achieve that functionality.
Fixes#8729.
Since this appears to fix the issue for everyone who commented on #8729, and no one proposed any better ideas, this is my suggestion.
It would be nice to use import.meta everywhere, and browsers seem to have good support, however the tooling appears to be lagging a bit behind.
// In MODULARIZE mode _scriptDir needs to be captured already at the very top of the page immediately when the page is parsed, so it is generated there
91
91
// before the page load. In non-MODULARIZE modes generate it here.
0 commit comments