Skip to content

fix(build): remove globalthis deps#3522

Open
daker wants to merge 1 commit into
Kitware:masterfrom
daker:remove-globalthis
Open

fix(build): remove globalthis deps#3522
daker wants to merge 1 commit into
Kitware:masterfrom
daker:remove-globalthis

Conversation

@daker
Copy link
Copy Markdown
Collaborator

@daker daker commented Jun 1, 2026

Context

globalThis is now supported by all browser https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis

fixes #3498

@emnapi/core & @emnapi/runtime deps are temporary until the tooling deps are fixed. napi-rs/napi-rs#3174

Results

Changes

  • Documentation and TypeScript definitions were updated to match those changes

PR and Code Checklist

  • semantic-release commit messages
  • Run npm run reformat to have correctly formatted code

Testing

  • This change adds or fixes unit tests
  • Tested environment:
    • vtk.js:
    • OS:
    • Browser:

@daker daker force-pushed the remove-globalthis branch from bef1114 to 4dba5ef Compare June 1, 2026 14:54
Comment thread Sources/macros.js Outdated
@emnapi/core & @emnapi/runtime deps are temporary
until the tooling deps are fixed.
napi-rs/napi-rs#3174
@daker daker force-pushed the remove-globalthis branch from 4dba5ef to 2229817 Compare June 2, 2026 07:34
@daker daker requested a review from finetjul June 2, 2026 08:17
Copy link
Copy Markdown
Member

@finetjul finetjul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

[Bug] ja is not a function when attempting to render example cone when using esm.sh and vite

2 participants