@iwsdk/vite-plugin-dev 1.0.1 → 1.1.0-rc.1

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/README.md CHANGED
@@ -42,9 +42,10 @@ iwsdkDev({
42
42
  // Options: 'metaQuest2' | 'metaQuest3' | 'metaQuestPro' | 'metaVRGlasses' | 'oculusQuest1'
43
43
  device: 'metaQuest3', // default
44
44
 
45
- // Synthetic environment for AR room simulation
46
- // Options: 'living_room' | 'meeting_room' | 'music_room' | 'office_large' | 'office_small'
47
- environment: 'living_room',
45
+ // Room for AR scene-understanding testing: one of IWER's built-in rooms
46
+ // Options: 'sunlit_living_room' | 'home_office' | 'conference_room' |
47
+ // 'open_office' | 'kitchen' | 'bedroom' | 'music_studio' | 'open_studio'
48
+ environment: 'sunlit_living_room',
48
49
 
49
50
  // When to activate emulation
50
51
  // 'localhost' - only on localhost/127.0.0.1 (default)
@@ -103,7 +104,7 @@ iwsdkDev({
103
104
  iwsdkDev({
104
105
  emulator: {
105
106
  device: 'metaQuest3',
106
- environment: 'living_room',
107
+ environment: 'sunlit_living_room',
107
108
  },
108
109
  });
109
110
  ```
@@ -11,3 +11,12 @@ export declare const BUNDLED_FONT_MODULES: Record<UIKitMLBundledFontName, {
11
11
  }>;
12
12
  export declare function resolveBundledFontNames(publicDirectory: string | undefined, configured: ProductionBundleOptions['fonts']): Promise<ReadonlySet<UIKitMLBundledFontName>>;
13
13
  export declare function createDisabledBundledFontsModule(): string;
14
+ /**
15
+ * three r185's DRACOLoader and KTX2Loader default to the decoders next to the
16
+ * module (`new URL('../libs/…', import.meta.url)`), so Vite emits about 1.5 MB
17
+ * of decoder wasm/js into every production build. IWSDK points both loaders
18
+ * at the decoders on unpkg (core's asset/loaders/gltf-loader.ts), so point
19
+ * these defaults at the same place and nothing unused is bundled. Returns
20
+ * null for any other module.
21
+ */
22
+ export declare function rewriteThreeDecoderDefaults(code: string, id: string): string | null;