babylonjs-addons 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-addons",
3
- "version": "9.5.0",
3
+ "version": "9.5.2",
4
4
  "main": "babylonjs.addons.min.js",
5
5
  "types": "babylonjs.addons.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 ./babylonjs.addons.js"
16
17
  },
17
18
  "dependencies": {
18
- "babylonjs": "9.5.0"
19
+ "babylonjs": "9.5.2"
19
20
  },
20
21
  "devDependencies": {
21
22
  "@dev/addons": "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: "addons",
9
11
  outputPath: path.resolve("."),
10
12
  entryPoints: {
package/src/index.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  // Export all named symbols directly so ADDONS.HtmlMesh etc. work.
2
- // With Rollup UMD (unlike webpack's libraryExport:"default"), named exports must be
2
+ // With Rollup UMD, named exports must be
3
3
  // explicitly re-exported for them to appear on the global namespace object.
4
4
  //
5
5
  // IMPORTANT: Do NOT also `import * as addons; export { addons }` here.
6
6
  // When both patterns coexist, terser collapses all individual exports into the
7
7
  // namespace object in the minified bundle, leaving ADDONS.X undefined at runtime.
8
+ import "addons/index";
8
9
  export * from "addons/index";
package/webpack.config.js DELETED
@@ -1,20 +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: "addons",
7
- outputPath: path.resolve(__dirname),
8
- entryPoints: {
9
- addons: "./src/index.ts",
10
- },
11
- alias: {
12
- addons: path.resolve(__dirname, "../../../dev/addons/src"),
13
- },
14
- overrideFilename: () => {
15
- return `babylonjs.[name]${env.production ? ".min" : ""}.js`;
16
- },
17
- minToMax: true,
18
- });
19
- return commonConfig;
20
- };