Skip to content

Update global object fix#4940

Merged
Tyriar merged 18 commits intoxtermjs:masterfrom
octoclonius:patch-1
Apr 21, 2024
Merged

Update global object fix#4940
Tyriar merged 18 commits intoxtermjs:masterfrom
octoclonius:patch-1

Conversation

@octoclonius
Copy link
Copy Markdown
Contributor

@octoclonius octoclonius commented Jan 13, 2024

The changes are to the webpack.config.js files in each of the addon's folders. I set the global object to globalThis. I think this should fix the addons because when I import them, I get an error saying self is not defined.

Copy link
Copy Markdown

@ManojkumarV ManojkumarV left a comment

Choose a reason for hiding this comment

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

@GoodbyeNJN
Copy link
Copy Markdown

Is there any progress on this PR? I am also troubled by this problem, recompiling addon after using this patch works fine for me.

@FRSgit
Copy link
Copy Markdown

FRSgit commented Mar 11, 2024

@Tyriar Do you think this PR is something that could be merged in nearest future? Is anything needed here to unblock it?

It's blocking usage of the library with nuxt (in SSR context it tends to fail).

@Tyriar Tyriar added this to the 5.6.0 milestone Apr 21, 2024
@Tyriar Tyriar self-assigned this Apr 21, 2024
@Tyriar Tyriar merged commit 6be1c3f into xtermjs:master Apr 21, 2024
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.

5 participants