@plasius/gpu-shared 0.1.6 → 0.1.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.
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@ async function loadGltfModel(url) {
18
18
  return module.loadGltfModel(url);
19
19
  }
20
20
  async function mountGpuShowcase(options = {}) {
21
- const runtimeLoader = typeof options.__runtimeLoader === "function" ? options.__runtimeLoader : () => import("./showcase-runtime-JZIYGQAU.js");
21
+ const runtimeLoader = typeof options.__runtimeLoader === "function" ? options.__runtimeLoader : () => import("./showcase-runtime-AIPDRK7G.js");
22
22
  const module = await runtimeLoader();
23
23
  if (typeof module.mountGpuShowcase !== "function") {
24
24
  throw new Error("showcase runtime loader must provide mountGpuShowcase.");
@@ -2022,9 +2022,12 @@ var __require2 = /* @__PURE__ */ ((x) => typeof __require !== "undefined" ? __re
2022
2022
  if (typeof __require !== "undefined") return __require.apply(this, arguments);
2023
2023
  throw Error('Dynamic require of "' + x + '" is not supported');
2024
2024
  });
2025
+ function createModuleBaseUrl(metaUrl) {
2026
+ return Reflect.construct(URL, [String(metaUrl)]);
2027
+ }
2025
2028
  var baseUrl = (() => {
2026
2029
  if (typeof import.meta.url !== "undefined") {
2027
- return new URL("./index.js", import.meta.url);
2030
+ return createModuleBaseUrl(import.meta.url);
2028
2031
  }
2029
2032
  if (typeof __filename !== "undefined" && typeof __require2 !== "undefined") {
2030
2033
  const { pathToFileURL } = __require2("url");
@@ -8191,4 +8194,4 @@ export {
8191
8194
  mountGpuShowcase,
8192
8195
  showcaseFocusModes
8193
8196
  };
8194
- //# sourceMappingURL=showcase-runtime-JZIYGQAU.js.map
8197
+ //# sourceMappingURL=showcase-runtime-AIPDRK7G.js.map