瀏覽代碼

fixing build and declaration

Raanan Weber 7 年之前
父節點
當前提交
46f4e56ce9
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 3 2
      inspector/src/properties.ts
  2. 1 2
      inspector/webpack.config.js

+ 3 - 2
inspector/src/properties.ts

@@ -1,11 +1,12 @@
 import { Helpers } from "./helpers/Helpers";
 import { Vector2, Vector3, Color3, Color4, Quaternion, Size, Texture, RenderTargetTexture, DynamicTexture, BaseTexture, CubeTexture, HDRCubeTexture, Sound, ArcRotateCamera, FreeCamera, Scene, TransformNode, AbstractMesh, Mesh, StandardMaterial, PBRMaterial, PhysicsImpostor, ImageProcessingConfiguration, ColorCurves } from "babylonjs";
 
+export const PROPERTIES = {
 
-export var PROPERTIES = {
     /** Format the given object : 
      * If a format function exists, returns the result of this function.
-     * If this function doesn't exists, return the object type instead */
+     * If this function doesn't exists, return the object type instead
+     */
     format: (obj: any): any => {
         let type = Helpers.GET_TYPE(obj) || 'type_not_defined';
         if ((<any>PROPERTIES)[type] && (<any>PROPERTIES)[type].format) {

+ 1 - 2
inspector/webpack.config.js

@@ -48,8 +48,7 @@ module.exports = {
             root: "BABYLON",
             commonjs: "babylonjs-serializers",
             commonjs2: "babylonjs-serializers",
-            amd: "babylonjs-serializers",
-            optional: true
+            amd: "babylonjs-serializers"
         }
     },
     devtool: "source-map",