@gnsx/three 0.185.6 → 0.185.7
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.
|
@@ -79,7 +79,12 @@ function _saveState() {
|
|
|
79
79
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
// WITH_GENESYS
|
|
83
|
+
// Defer state load until Settings is instantiated. Calling `_loadState()` at
|
|
84
|
+
// module evaluation time triggers `Inspector.getItem()`, which reads `REVISION`
|
|
85
|
+
// (imported from `three/webgpu`) while `Inspector.js` is still mid-evaluation (TDZ).
|
|
86
|
+
// _loadState();
|
|
87
|
+
// !WITH_GENESYS
|
|
83
88
|
|
|
84
89
|
//
|
|
85
90
|
|
|
@@ -276,10 +281,11 @@ Shares the same state across any page within the current origin.` );
|
|
|
276
281
|
|
|
277
282
|
extension.active = true;
|
|
278
283
|
|
|
279
|
-
const extUrl = new URL( extension.url, import.meta.url ).href;
|
|
280
|
-
|
|
281
284
|
// WITH_GENESYS
|
|
282
|
-
|
|
285
|
+
// `new URL( extension.url, import.meta.url )` fails with webpack 5 because the
|
|
286
|
+
// first argument is dynamic ("Can't resolve <dynamic>"). With @vite-ignore and
|
|
287
|
+
// webpackIgnore, the browser resolves the relative `extension.url` at runtime.
|
|
288
|
+
const module = await import( /* @vite-ignore */ /* webpackIgnore: true */ extension.url );
|
|
283
289
|
// !WITH_GENESYS
|
|
284
290
|
|
|
285
291
|
const keys = Object.keys( module );
|