@openremote/util 1.13.1 → 1.14.0-snapshot

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.
Files changed (2) hide show
  1. package/package.json +11 -8
  2. package/webpack.util.js +15 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openremote/util",
3
- "version": "1.13.1",
3
+ "version": "1.14.0-snapshot",
4
4
  "description": "Build Util",
5
5
  "author": "OpenRemote",
6
6
  "main": "webpack.util.js",
@@ -8,14 +8,15 @@
8
8
  "orutil": "./cli.js"
9
9
  },
10
10
  "license": "AGPL-3.0-or-later",
11
- "devDependencies": {
12
- "@custom-elements-manifest/analyzer": "^0.10.4",
13
- "@rspack/cli": "^1.4.4",
14
- "@rspack/core": "^1.4.4",
11
+ "dependencies": {
12
+ "@custom-elements-manifest/analyzer": "^0.11.0",
13
+ "@rspack/cli": "~1.7.5",
14
+ "@rspack/core": "~1.7.5",
15
15
  "@types/react": "^18",
16
16
  "@typescript-eslint/eslint-plugin": "^5.9.0",
17
17
  "@typescript-eslint/parser": "^5.9.0",
18
- "@wc-toolkit/jsx-types": "^1.4.2",
18
+ "@wc-toolkit/cem-inheritance": "~1.2.2",
19
+ "@wc-toolkit/jsx-types": "~1.5.3",
19
20
  "@wc-toolkit/storybook-helpers": "^10.0.0",
20
21
  "@webcomponents/webcomponentsjs": "^2.6.0",
21
22
  "cross-env": "^7.0.3",
@@ -26,14 +27,16 @@
26
27
  "eslint-plugin-import": "^2.25.4",
27
28
  "eslint-plugin-node": "^11.1.0",
28
29
  "eslint-plugin-promise": "^6.0.0",
29
- "html-webpack-plugin": "^5.6.3",
30
+ "html-webpack-plugin": "^5.6.6",
31
+ "moment": "^2.29.4",
32
+ "moment-locales-webpack-plugin": "^1.2.0",
30
33
  "prettier": "^2.5.1",
31
34
  "querystring-es3": "^0.2.1",
32
35
  "shx": "~0.4.0",
33
36
  "source-map-loader": "^5.0.0",
34
37
  "ts-loader": "~9.5.2",
35
38
  "typescript": "5.8.3",
36
- "webpack": "^5.99.8"
39
+ "webpack": "^5.105.4"
37
40
  },
38
41
  "publishConfig": {
39
42
  "access": "public"
package/webpack.util.js CHANGED
@@ -2,17 +2,22 @@ const fs = require("fs");
2
2
  const path = require("path");
3
3
  const { rspack } = require('@rspack/core');
4
4
  const HtmlWebpackPlugin = require("html-webpack-plugin");
5
+ const MomentLocalesPlugin = require('moment-locales-webpack-plugin');
5
6
 
6
7
  function getStandardModuleRules() {
7
8
  return {
8
9
  rules: [
9
10
  {
10
- test: /(maplibre|mapbox|@material|gridstack|@mdi).*\.css$/, //output css as strings
11
+ test: /(maplibre|@material|gridstack|@mdi).*\.css$/, //output css as strings
11
12
  type: "asset/source"
12
13
  },
14
+ {
15
+ test: /\.wasm$/,
16
+ type: "asset/resource"
17
+ },
13
18
  {
14
19
  test: /\.css$/, //
15
- exclude: /(maplibre|mapbox|@material|gridstack|@mdi).*\.css$/,
20
+ exclude: /(maplibre|@material|gridstack|@mdi).*\.css$/,
16
21
  use: [
17
22
  { loader: "css-loader" }
18
23
  ]
@@ -82,6 +87,9 @@ function getAppConfig(mode, isDevServer, dirname, managerUrl, keycloakUrl, port)
82
87
  "vm": false,
83
88
  "querystring": require.resolve("querystring-es3")
84
89
  }
90
+ },
91
+ experiments: {
92
+ asyncWebAssembly: true
85
93
  }
86
94
  };
87
95
 
@@ -100,7 +108,11 @@ function getAppConfig(mode, isDevServer, dirname, managerUrl, keycloakUrl, port)
100
108
  chunksSortMode: 'none',
101
109
  inject: false,
102
110
  template: 'index.html'
103
- })
111
+ }),
112
+ // Remove any unused locales
113
+ new MomentLocalesPlugin({
114
+ localesToKeep: ['ar', 'zh-cn', 'de', 'en', 'es', 'fr', 'it', 'nl', 'pl', 'pt', 'ro', 'uk'],
115
+ }),
104
116
  ];
105
117
 
106
118
  if (production) {