babylonjs-loaders 9.5.0 → 9.5.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.
@@ -22,7 +22,7 @@ export * from "babylonjs-loaders/legacy/legacy-bvhFileLoader";
22
22
  export * from "babylonjs-loaders/legacy/legacy-dynamic";
23
23
  export * from "babylonjs-loaders/legacy/legacy-glTF";
24
24
  export * from "babylonjs-loaders/legacy/legacy-glTF1";
25
- export * from "babylonjs-loaders/legacy/legacy-glTF2";
25
+ export { GLTF2 } from "babylonjs-loaders/legacy/legacy-glTF2";
26
26
  export * from "babylonjs-loaders/legacy/legacy-objFileLoader";
27
27
  export * from "babylonjs-loaders/legacy/legacy-stlFileLoader";
28
28
 
@@ -48,7 +48,8 @@ export * from "babylonjs-loaders/legacy/legacy-glTF2";
48
48
  }
49
49
  declare module "babylonjs-loaders/legacy/legacy-glTF2" {
50
50
  import * as GLTF2 from "babylonjs-loaders/glTF/2.0/index";
51
- export { GLTF2 };
51
+ const GLTF2Legacy: typeof GLTF2;
52
+ export { GLTF2Legacy as GLTF2 };
52
53
 
53
54
  }
54
55
  declare module "babylonjs-loaders/legacy/legacy-glTF1FileLoader" {
@@ -7931,6 +7932,7 @@ declare namespace BABYLON {
7931
7932
 
7932
7933
 
7933
7934
 
7935
+ var GLTF2Legacy: typeof GLTF2;
7934
7936
 
7935
7937
 
7936
7938
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-loaders",
3
- "version": "9.5.0",
3
+ "version": "9.5.2",
4
4
  "main": "babylonjs.loaders.min.js",
5
5
  "types": "babylonjs.loaders.module.d.ts",
6
6
  "files": [
@@ -9,14 +9,15 @@
9
9
  "scripts": {
10
10
  "build": "npm run clean && npm run build:prod && npm run build:declaration",
11
11
  "build:dev": "rollup -c rollup.config.umd.mjs",
12
+ "build:dev:fast": "rollup -c rollup.config.umd.mjs --environment ROLLUP_DEVMODE:true",
12
13
  "build:prod": "rollup -c rollup.config.umd.mjs --environment ROLLUP_MODE:production",
13
14
  "build:declaration": "build-tools -c pud --config ./config.json",
14
15
  "clean": "rimraf dist && rimraf babylon*.* -g",
15
16
  "test:escheck": "es-check es6 ./babylonjs.loaders.js"
16
17
  },
17
18
  "dependencies": {
18
- "babylonjs": "9.5.0",
19
- "babylonjs-gltf2interface": "9.5.0"
19
+ "babylonjs": "9.5.2",
20
+ "babylonjs-gltf2interface": "9.5.2"
20
21
  },
21
22
  "devDependencies": {
22
23
  "@dev/build-tools": "1.0.0",
@@ -2,10 +2,12 @@ import { commonUMDRollupConfiguration } from "../../rollupUMDHelper.mjs";
2
2
  import path from "path";
3
3
 
4
4
  const mode = process.env.ROLLUP_MODE === "production" ? "production" : "development";
5
+ const devMode = process.env.ROLLUP_DEVMODE === "true";
5
6
  const production = mode === "production";
6
7
 
7
8
  export default commonUMDRollupConfiguration({
8
9
  mode,
10
+ devMode,
9
11
  devPackageName: "loaders",
10
12
  outputPath: path.resolve("."),
11
13
  entryPoints: {
@@ -1,3 +1,2 @@
1
- import * as loaders from "loaders/legacy/legacy-bvhFileLoader";
2
- export { loaders };
3
- export default loaders;
1
+ import "loaders/legacy/legacy-bvhFileLoader";
2
+ export * from "loaders/legacy/legacy-bvhFileLoader";
@@ -1,4 +1,2 @@
1
- // eslint-disable-next-line import/export
2
- import * as loaders from "loaders/legacy/legacy-glTF1FileLoader";
3
- export { loaders };
4
- export default loaders;
1
+ import "loaders/legacy/legacy-glTF1FileLoader";
2
+ export * from "loaders/legacy/legacy-glTF1FileLoader";
@@ -1,3 +1,2 @@
1
- import * as loaders from "loaders/legacy/legacy-glTF2FileLoader";
2
- export { loaders };
3
- export default loaders;
1
+ import "loaders/legacy/legacy-glTF2FileLoader";
2
+ export * from "loaders/legacy/legacy-glTF2FileLoader";
@@ -1,3 +1,2 @@
1
- import * as loaders from "loaders/legacy/legacy-glTFFileLoader";
2
- export { loaders };
3
- export default loaders;
1
+ import "loaders/legacy/legacy-glTFFileLoader";
2
+ export * from "loaders/legacy/legacy-glTFFileLoader";
package/src/index.ts CHANGED
@@ -1,3 +1,2 @@
1
- import * as loaders from "loaders/legacy/legacy";
2
- export { loaders };
3
- export default loaders;
1
+ import "loaders/legacy/legacy";
2
+ export * from "loaders/legacy/legacy";
@@ -1,3 +1,2 @@
1
- import * as loaders from "loaders/legacy/legacy-objFileLoader";
2
- export { loaders };
3
- export default loaders;
1
+ import "loaders/legacy/legacy-objFileLoader";
2
+ export * from "loaders/legacy/legacy-objFileLoader";
@@ -1,3 +1,2 @@
1
- import * as loaders from "loaders/legacy/legacy-stlFileLoader";
2
- export { loaders };
3
- export default loaders;
1
+ import "loaders/legacy/legacy-stlFileLoader";
2
+ export * from "loaders/legacy/legacy-stlFileLoader";
package/webpack.config.js DELETED
@@ -1,26 +0,0 @@
1
- const commonConfigGenerator = require("@dev/build-tools").webpackTools.commonUMDWebpackConfiguration;
2
- const path = require("path");
3
- module.exports = (env) => {
4
- const commonConfig = commonConfigGenerator({
5
- mode: env.production ? "production" : "development",
6
- devPackageName: "loaders",
7
- outputPath: path.resolve(__dirname),
8
- entryPoints: {
9
- loaders: "./src/index.ts",
10
- bvhFileLoader: "./src/bvhFileLoader.ts",
11
- glTF1FileLoader: "./src/glTF1FileLoader.ts",
12
- glTF2FileLoader: "./src/glTF2FileLoader.ts",
13
- glTFFileLoader: "./src/glTFFileLoader.ts",
14
- objFileLoader: "./src/objFileLoader.ts",
15
- stlFileLoader: "./src/stlFileLoader.ts",
16
- },
17
- alias: {
18
- loaders: path.resolve(__dirname, "../../../dev/loaders/src"),
19
- },
20
- overrideFilename: (pathData) => {
21
- return pathData.chunk.name === "loaders" ? `babylonjs.[name]${env.production ? ".min" : ""}.js` : `babylon.[name]${env.production ? ".min" : ""}.js`;
22
- },
23
- minToMax: true,
24
- });
25
- return commonConfig;
26
- };