@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.
- package/dist/webgl-budget.js +4 -0
- package/package.json +1 -1
- package/src/webgl-budget.ts +11 -3
package/dist/webgl-budget.js
CHANGED
|
@@ -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
package/src/webgl-budget.ts
CHANGED
|
@@ -107,9 +107,17 @@ class WebglBudget {
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
if (Addon === null) {
|
|
110
|
-
addonLoad ??= import('@xterm/addon-webgl').then(
|
|
111
|
-
|
|
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
|
() => {
|