@iwsdk/vite-plugin-dev 1.0.1 → 1.1.0-rc.0
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 +5 -4
- package/dist/bundle-feature-gates.d.ts +9 -0
- package/dist/index.js +8704 -7942
- package/dist/index.js.map +1 -1
- package/dist/injection/chunks/_iwsdk-legacy-capture-B-A3EajS.js +1 -0
- package/dist/injection/chunks/bedroom-DETf9sEz.js +1 -0
- package/dist/injection/chunks/conference_room-CqY6mchI.js +1 -0
- package/dist/injection/chunks/home_office-BxWjiBZF.js +1 -0
- package/dist/injection/chunks/index-C3rlN7Lf.js +1 -0
- package/dist/injection/chunks/injection-template-9pnR-F15.js +984 -0
- package/dist/injection/chunks/kitchen-X_P3Lfoy.js +1 -0
- package/dist/injection/chunks/music_studio-glBmJOMe.js +1 -0
- package/dist/injection/chunks/open_office-BEqVZ5xR.js +1 -0
- package/dist/injection/chunks/open_studio-CVCR0jsb.js +1 -0
- package/dist/injection/chunks/sunlit_living_room-1m7CU_6o.js +1 -0
- package/dist/injection/runtime.js +1 -0
- package/dist/injection-bundler.d.ts +24 -1
- package/dist/injection-template.d.ts +3 -1
- package/dist/types.d.ts +18 -6
- package/package.json +8 -8
- package/dist/injection-bundle.js +0 -1045
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
|
-
//
|
|
46
|
-
// Options: '
|
|
47
|
-
|
|
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: '
|
|
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;
|