@iwsdk/vite-plugin-dev 1.2.0-rc.1 → 1.2.0-rc.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/README.md +3 -1
- package/dist/index.js +63 -14
- package/dist/index.js.map +1 -1
- package/dist/native-target.d.ts +28 -0
- package/package.json +5 -5
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import type { IwsdkProjectManifestV1 } from '@iwsdk/core/project';
|
|
8
|
+
/**
|
|
9
|
+
* Vite mode of a native (metavr) build: `vite build --mode metavr`, which the
|
|
10
|
+
* `build:metavr` script of projects created with `--metavr-native` runs before
|
|
11
|
+
* `iwer-native pack`. Alpha: the @iwer/native runtime is an opt-in preview.
|
|
12
|
+
*/
|
|
13
|
+
export declare const METAVR_BUILD_MODE = "metavr";
|
|
14
|
+
/** Environment switch for wrappers that cannot pass a Vite mode (`iwsdk build --target metavr`). */
|
|
15
|
+
export declare const BUILD_TARGET_ENV = "IWSDK_BUILD_TARGET";
|
|
16
|
+
/**
|
|
17
|
+
* True for a production build that @iwer/native packs into an APK. Such a build
|
|
18
|
+
* must not carry the IWER emulator: the native runtime provides WebXR itself
|
|
19
|
+
* (IWER host mode), and an injected emulator would take over navigator.xr.
|
|
20
|
+
* `dev.emulator.injectOnBuild` keeps applying to browser builds.
|
|
21
|
+
*/
|
|
22
|
+
export declare function isNativeTargetBuild(command: 'serve' | 'build', mode: string | undefined, env?: Record<string, string | undefined>): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* The manifest as the browser bundle sees it. The `native` section configures
|
|
25
|
+
* packaging (package id, signing keystore path, env-var names) and is read by
|
|
26
|
+
* @iwer/native at pack time, so it stays out of the shipped JavaScript.
|
|
27
|
+
*/
|
|
28
|
+
export declare function runtimeProjectManifest(manifest: IwsdkProjectManifestV1): IwsdkProjectManifestV1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iwsdk/vite-plugin-dev",
|
|
3
|
-
"version": "1.2.0-rc.
|
|
3
|
+
"version": "1.2.0-rc.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Vite plugin for IWSDK development — XR emulation, AI agent tooling, and Playwright browser",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -50,19 +50,19 @@
|
|
|
50
50
|
"open": "^10.2.0",
|
|
51
51
|
"playwright": "1.65.1",
|
|
52
52
|
"preact": "^10.29.7",
|
|
53
|
-
"sharp": "^0.35.
|
|
53
|
+
"sharp": "^0.35.5",
|
|
54
54
|
"three": "npm:super-three@0.185.0",
|
|
55
55
|
"three-viewport-gizmo": "^2.2.0",
|
|
56
56
|
"ws": "^8.21.1",
|
|
57
|
-
"@iwsdk/scene-composition": "1.2.0-rc.
|
|
58
|
-
"@iwsdk/core": "1.2.0-rc.
|
|
57
|
+
"@iwsdk/scene-composition": "1.2.0-rc.2",
|
|
58
|
+
"@iwsdk/core": "1.2.0-rc.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@iwer/sem": "^2.9.0",
|
|
62
62
|
"@types/ws": "^8.5.13",
|
|
63
63
|
"iwer": "^2.9.0",
|
|
64
64
|
"vitest": "^4.1.10",
|
|
65
|
-
"@iwsdk/cli": "1.2.0-rc.
|
|
65
|
+
"@iwsdk/cli": "1.2.0-rc.2"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"vite": "^7.0.0"
|