@bigbinary/neeto-commons-frontend 4.14.2 → 4.14.3

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.
@@ -20,16 +20,17 @@ module.exports = {
20
20
  "../../../",
21
21
  "neeto-time-zones/dist"
22
22
  ),
23
- "dayjs/plugin/customParseFormat": require.resolve(
24
- "@bigbinary/neeto-commons-frontend/utils/customParseFormatPlugin"
25
- ),
26
- "dayjs/plugin/timezone": require.resolve(
27
- "@bigbinary/neeto-commons-frontend/utils/timezonePlugin"
28
- ),
23
+ "dayjs/plugin/customParseFormat":
24
+ require.resolve("@bigbinary/neeto-commons-frontend/utils/customParseFormatPlugin"),
25
+ "dayjs/plugin/timezone":
26
+ require.resolve("@bigbinary/neeto-commons-frontend/utils/timezonePlugin"),
29
27
  images: path.resolve(process.cwd(), "app/assets/images"),
30
28
  assert: require.resolve("assert/"),
31
29
  buffer: require.resolve("buffer/"),
32
- crypto: require.resolve("crypto-browserify"),
30
+ // crypto-js (used by neeto-editor) only calls `require("crypto")` when there
31
+ // is no `window.crypto`, which never happens in a browser. Resolving it to
32
+ // crypto-browserify bundled about 400 KB of unused polyfill.
33
+ crypto: path.join(__dirname, "emptyModule.js"),
33
34
  http: require.resolve("stream-http"),
34
35
  https: require.resolve("https-browserify"),
35
36
  os: require.resolve("os-browserify/browser"),
@@ -0,0 +1,3 @@
1
+ // Resolved for Node built-ins that have no use in the browser, so their
2
+ // polyfills stay out of the bundle. See `crypto` in ./alias.js.
3
+ module.exports = {};
@@ -77,6 +77,23 @@ const config = {
77
77
  logLevel: isWatchMode ? "info" : "error",
78
78
  format: "esm",
79
79
  platform: "browser",
80
+ // Emit non-ASCII characters as UTF-8 instead of \uXXXX escapes, which
81
+ // roughly halve the raw size of non-Latin translation chunks. Our chunks
82
+ // load as module scripts, which browsers always decode as UTF-8.
83
+ charset: "utf8",
84
+ // The oldest browsers neetoMolecules BrowserSupport lets in. Babel only
85
+ // transpiles app code, so this is what lowers (or rejects) syntax in
86
+ // packages. Keep it in sync with MINIMUM_SUPPORTED_BROWSER_VERSIONS. A
87
+ // product that lowers those through `browserSupportProps.overrides` must
88
+ // set a matching `target` in its own config/esbuild/config.js.
89
+ target: [
90
+ "chrome111",
91
+ "edge111",
92
+ "firefox128",
93
+ "safari16.4",
94
+ "ios16.4",
95
+ "opera98",
96
+ ],
80
97
  mainFields: ["browser", "module", "main"],
81
98
  loader: {
82
99
  ".png": "file",
package/dist/.ready CHANGED
@@ -1 +1 @@
1
- Built at 2026-10-21T05:51:37.864Z
1
+ Built at 2026-10-23T11:56:39.155Z
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-commons-frontend",
3
- "version": "4.14.2",
3
+ "version": "4.14.3",
4
4
  "description": "A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.",
5
5
  "repository": "git@github.com:bigbinary/neeto-commons-frontend.git",
6
6
  "author": "Amaljith K <amaljith.k@bigbinary.com>",