-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed(core): resolve incorrect module initialization in non-browser e…
…nvironments like Node.js Signed-off-by: Tim Deubler <[email protected]>
- Loading branch information
1 parent
4d7c9f4
commit 0866112
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import './shared'; | ||
import './workers'; | ||
import './index'; | ||
let xyz = window; | ||
let xyz = typeof window =='undefined'?global:window; ; | ||
'here.xyz.maps'.split('.').forEach((ns) => xyz = (xyz[ns] = xyz[ns] || {})); | ||
export default xyz; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters