Skip to content

feat: Fix global reference when importing as module#524

Open
jblumie wants to merge 1 commit intojagenjo:masterfrom
jblumie:feature/fix-as-module
Open

feat: Fix global reference when importing as module#524
jblumie wants to merge 1 commit intojagenjo:masterfrom
jblumie:feature/fix-as-module

Conversation

@jblumie
Copy link

@jblumie jblumie commented Mar 10, 2026

When importing as a module this isn't defined, and should be globalThis instead. I think this is also the error behind #461 but I don't use vite to test.

When importing as a module `this` isn't defined, and should be
`globalThis` instead. I think this is also the error behind jagenjo#461 but I
don't use vite to test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant