@adecore/terminal 0.71.0 → 0.71.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -83,6 +83,10 @@ class WebglBudget {
83
83
  if (Addon === null) {
84
84
  addonLoad ??= import('@xterm/addon-webgl').then(module => {
85
85
  Addon = module.WebglAddon;
86
+ }, error => {
87
+ // Asked again by the next terminal, since a chunk that failed once may load later.
88
+ addonLoad = null;
89
+ throw error;
86
90
  });
87
91
  void addonLoad.then(() => {
88
92
  if (this.slots.holds(id)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adecore/terminal",
3
- "version": "0.71.0",
3
+ "version": "0.71.2",
4
4
  "description": "A themed terminal pane on xterm.js that fits its container and is fed by the app.",
5
5
  "license": "FSL-1.1-MIT",
6
6
  "author": "Bas Milius",
@@ -107,9 +107,17 @@ class WebglBudget {
107
107
  }
108
108
 
109
109
  if (Addon === null) {
110
- addonLoad ??= import('@xterm/addon-webgl').then((module) => {
111
- Addon = module.WebglAddon;
112
- });
110
+ addonLoad ??= import('@xterm/addon-webgl').then(
111
+ (module) => {
112
+ Addon = module.WebglAddon;
113
+ },
114
+ (error: unknown) => {
115
+ // Asked again by the next terminal, since a chunk that failed once may load later.
116
+ addonLoad = null;
117
+
118
+ throw error;
119
+ }
120
+ );
113
121
 
114
122
  void addonLoad.then(
115
123
  () => {