@thatopen/services 0.37.0 → 0.37.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/cli.js CHANGED
@@ -13762,6 +13762,21 @@ const serveCommand = new Command2("serve").description(
13762
13762
  });
13763
13763
  }
13764
13764
  },
13765
+ {
13766
+ // 🔴 web-ifc WITHOUT ITS IFC READER, FOR AN APP THAT NEVER CONVERTS AN IFC (24-11: the platform converts them on
13767
+ // upload). An app that carries `src/webgpu/web-ifc-light.mjs` (the app template does) gets, for `web-ifc`, the module
13768
+ // it writes from the web-ifc installed: its constants, and stand-ins for the reader (57 KB in place of 5.8 MB).
13769
+ name: "web-ifc-light",
13770
+ async setup(build) {
13771
+ const writer = require$$2.join(cwd, "src", "webgpu", "web-ifc-light.mjs");
13772
+ if (!require$$3$1.existsSync(writer)) return;
13773
+ const { pathToFileURL } = await import("node:url");
13774
+ const { lightWebIfc } = await import(pathToFileURL(writer).href);
13775
+ const source = lightWebIfc(cwd);
13776
+ build.onResolve({ filter: /^web-ifc$/ }, () => ({ path: "web-ifc", namespace: "web-ifc-light" }));
13777
+ build.onLoad({ filter: /.*/, namespace: "web-ifc-light" }, () => ({ contents: source, loader: "js" }));
13778
+ }
13779
+ },
13765
13780
  {
13766
13781
  // 🔴 WHAT DRAWS WITH WEBGL ONLY, ON ITS OWN COPY OF three (24-11: the app template's `.3tz` viewer draws with a
13767
13782
  // library that has no WebGPU, in a renderer of its own, while the app is on three's WebGPU build). Everything under