babylonjs-toolkit 9.8.0 → 9.9.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  # Classic Edition
2
2
  The <a href="https://www.babylontoolkit.com">Babylon Toolkit</a> is a runtime library extension for BabylonJS development that provides modern programming mechanics with a familiar Unity like scripting model to fast track native web game development.
3
3
 
4
- <a href="https://github.com/babylontoolkit/StarterAssets">Demo React Project (TSX)</a>
4
+ <a href="https://github.com/babylontoolkit/StarterAssets">Demo React Project (UMD)</a>
5
5
  <br/>
6
6
  <a href="https://github.com/BabylonJS/BabylonToolkit/tree/master/Runtime">Browser Library (CDN)</a>
7
7
  <br/>
@@ -38,5 +38,22 @@ import 'babylonjs-toolkit';
38
38
  "babylonjs-toolkit"
39
39
  ]
40
40
  ```
41
+ ### Vite Configuration (UMD)
42
+
43
+ The Vite bundle services behave differently in devmode than production. To preserve some required classes during devmode, these `exclude` and `include` settings are strongly recommended in your vite.config.js settings file.
44
+
45
+ ```json
46
+ optimizeDeps: {
47
+ exclude: ["babylonjs-inspector"],
48
+ include: mode === 'development' ? [
49
+ "babylonjs",
50
+ "babylonjs-gui",
51
+ "babylonjs-addons",
52
+ "babylonjs-loaders",
53
+ "babylonjs-materials",
54
+ "babylonjs-toolkit",
55
+ ] : [],
56
+ },
57
+ ```
41
58
 
42
59
  Note: The **BABYLON** and **TOOLKIT** namespaces are globally accessible. Navigation is now bundled within the toolkit.