babylonjs-gui 9.5.0 → 9.5.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-gui",
3
- "version": "9.5.0",
3
+ "version": "9.5.1",
4
4
  "main": "babylon.gui.min.js",
5
5
  "types": "babylon.gui.module.d.ts",
6
6
  "files": [
@@ -9,13 +9,14 @@
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 ./babylon.gui.js"
16
17
  },
17
18
  "dependencies": {
18
- "babylonjs": "9.5.0"
19
+ "babylonjs": "9.5.1"
19
20
  },
20
21
  "devDependencies": {
21
22
  "@dev/build-tools": "1.0.0",
@@ -2,9 +2,11 @@ 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
 
6
7
  export default commonUMDRollupConfiguration({
7
8
  mode,
9
+ devMode,
8
10
  devPackageName: "gui",
9
11
  namespace: "BABYLON.GUI",
10
12
  outputPath: path.resolve("."),
package/src/index.ts CHANGED
@@ -5,4 +5,5 @@
5
5
  // IMPORTANT: Do NOT also `import * as gui; export { gui }` here.
6
6
  // When both patterns coexist, terser collapses all individual exports into the
7
7
  // namespace object in the minified bundle, leaving BABYLON.GUI.X undefined at runtime.
8
+ import "gui/legacy/legacy";
8
9
  export * from "gui/legacy/legacy";
package/webpack.config.js DELETED
@@ -1,16 +0,0 @@
1
- const path = require("path");
2
- const commonConfigGenerator = require("@dev/build-tools").webpackTools.commonUMDWebpackConfiguration;
3
-
4
- module.exports = (env) => {
5
- const commonConfig = commonConfigGenerator({
6
- mode: env.production ? "production" : "development",
7
- devPackageName: "gui",
8
- namespace: "BABYLON.GUI",
9
- outputPath: path.resolve(__dirname),
10
- alias: {
11
- gui: path.resolve(__dirname, "../../../dev/gui/src"),
12
- },
13
- minToMax: true,
14
- });
15
- return commonConfig;
16
- };