@bigbinary/neeto-commons-frontend 3.4.16 → 3.5.0
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/cjs/configs/webpack/index.js +44 -1
- package/cjs/react-utils/HoneybadgerErrorBoundary/constants.js +1 -1
- package/cjs/react-utils/HoneybadgerErrorBoundary/constants.js.map +1 -1
- package/configs/webpack/index.js +44 -1
- package/package.json +1 -1
- package/react-utils/HoneybadgerErrorBoundary/constants.js +1 -1
- package/react-utils/HoneybadgerErrorBoundary/constants.js.map +1 -1
|
@@ -27,8 +27,51 @@ const commonOptions = {
|
|
|
27
27
|
devtool,
|
|
28
28
|
resolve,
|
|
29
29
|
optimization: {
|
|
30
|
+
runtimeChunk: "single",
|
|
30
31
|
splitChunks: {
|
|
31
|
-
|
|
32
|
+
chunks: "all",
|
|
33
|
+
maxInitialRequests: Infinity,
|
|
34
|
+
minSize: 5000, // 5kb uncompressed
|
|
35
|
+
cacheGroups: {
|
|
36
|
+
bigBinary: {
|
|
37
|
+
test: /[\\/]node_modules[\\/](?:@bigbinary)[\\/]/,
|
|
38
|
+
priority: 5,
|
|
39
|
+
name(module) {
|
|
40
|
+
const matches = module.context.match(
|
|
41
|
+
/[\\/]node_modules[\\/](?:@bigbinary)[\\/](.*?)([\\/]|$)/
|
|
42
|
+
);
|
|
43
|
+
const packageName = matches ? matches[1] : "bigbinary-main";
|
|
44
|
+
|
|
45
|
+
return `bigbinary-${packageName.replace("@", "")}`;
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
reactModules: {
|
|
49
|
+
test: /[\\/]node_modules[\\/]react.*[\\/]/,
|
|
50
|
+
name: "react-modules",
|
|
51
|
+
priority: 10,
|
|
52
|
+
},
|
|
53
|
+
antd: {
|
|
54
|
+
test: /[\\/]node_modules[\\/]antd[\\/]/,
|
|
55
|
+
name: "antd",
|
|
56
|
+
priority: 10,
|
|
57
|
+
},
|
|
58
|
+
recharts: {
|
|
59
|
+
test: /[\\/]node_modules[\\/]recharts[\\/]/,
|
|
60
|
+
name: "recharts",
|
|
61
|
+
priority: 10,
|
|
62
|
+
},
|
|
63
|
+
emojiMart: {
|
|
64
|
+
test: /[\\/]node_modules[\\/]emoji-mart[\\/]/,
|
|
65
|
+
name: "emoji-mart",
|
|
66
|
+
priority: 10,
|
|
67
|
+
},
|
|
68
|
+
npmCommon: {
|
|
69
|
+
test: /[\\/]node_modules[\\/](zustand|ramda|formik|dayjs|axios|classnames|dompurify|popper.js|yup|qs|zustand|framer-motion|lowlight|tippy.js)[\\/]/,
|
|
70
|
+
name: "npm-common",
|
|
71
|
+
priority: 10,
|
|
72
|
+
},
|
|
73
|
+
npmRest: { test: /[\\/]node_modules[\\/]/, name: "npm-rest" },
|
|
74
|
+
},
|
|
32
75
|
},
|
|
33
76
|
},
|
|
34
77
|
module: { rules },
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.IGNORABLE_ERROR_NAMES_REGEX = exports.IGNORABLE_ERRORS_REGEX = void 0;
|
|
7
|
-
var IGNORABLE_ERRORS_REGEX = /(window\.requestAnimationFrame|ResizeObserver|ChunkLoadError|window\.webkit\.messageHandlers|Request aborted|Network Error)/;
|
|
7
|
+
var IGNORABLE_ERRORS_REGEX = /(window\.requestAnimationFrame|ResizeObserver|ChunkLoadError|window\.webkit\.messageHandlers|Request aborted|Network Error|Cannot redefine property: googletag)/;
|
|
8
8
|
exports.IGNORABLE_ERRORS_REGEX = IGNORABLE_ERRORS_REGEX;
|
|
9
9
|
var IGNORABLE_ERROR_NAMES_REGEX = /(ChunkLoadError)/;
|
|
10
10
|
exports.IGNORABLE_ERROR_NAMES_REGEX = IGNORABLE_ERROR_NAMES_REGEX;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","names":["IGNORABLE_ERRORS_REGEX","exports","IGNORABLE_ERROR_NAMES_REGEX"],"sources":["../../../../src/react-utils/HoneybadgerErrorBoundary/constants.js"],"sourcesContent":["export const IGNORABLE_ERRORS_REGEX =\n /(window\\.requestAnimationFrame|ResizeObserver|ChunkLoadError|window\\.webkit\\.messageHandlers|Request aborted|Network Error)/;\nexport const IGNORABLE_ERROR_NAMES_REGEX = /(ChunkLoadError)/;\n"],"mappings":";;;;;;AAAO,IAAMA,sBAAsB,GACjC,
|
|
1
|
+
{"version":3,"file":"constants.js","names":["IGNORABLE_ERRORS_REGEX","exports","IGNORABLE_ERROR_NAMES_REGEX"],"sources":["../../../../src/react-utils/HoneybadgerErrorBoundary/constants.js"],"sourcesContent":["export const IGNORABLE_ERRORS_REGEX =\n /(window\\.requestAnimationFrame|ResizeObserver|ChunkLoadError|window\\.webkit\\.messageHandlers|Request aborted|Network Error|Cannot redefine property: googletag)/;\nexport const IGNORABLE_ERROR_NAMES_REGEX = /(ChunkLoadError)/;\n"],"mappings":";;;;;;AAAO,IAAMA,sBAAsB,GACjC,iKAAiK;AAACC,OAAA,CAAAD,sBAAA,GAAAA,sBAAA;AAC7J,IAAME,2BAA2B,GAAG,kBAAkB;AAACD,OAAA,CAAAC,2BAAA,GAAAA,2BAAA"}
|
package/configs/webpack/index.js
CHANGED
|
@@ -27,8 +27,51 @@ const commonOptions = {
|
|
|
27
27
|
devtool,
|
|
28
28
|
resolve,
|
|
29
29
|
optimization: {
|
|
30
|
+
runtimeChunk: "single",
|
|
30
31
|
splitChunks: {
|
|
31
|
-
|
|
32
|
+
chunks: "all",
|
|
33
|
+
maxInitialRequests: Infinity,
|
|
34
|
+
minSize: 5000, // 5kb uncompressed
|
|
35
|
+
cacheGroups: {
|
|
36
|
+
bigBinary: {
|
|
37
|
+
test: /[\\/]node_modules[\\/](?:@bigbinary)[\\/]/,
|
|
38
|
+
priority: 5,
|
|
39
|
+
name(module) {
|
|
40
|
+
const matches = module.context.match(
|
|
41
|
+
/[\\/]node_modules[\\/](?:@bigbinary)[\\/](.*?)([\\/]|$)/
|
|
42
|
+
);
|
|
43
|
+
const packageName = matches ? matches[1] : "bigbinary-main";
|
|
44
|
+
|
|
45
|
+
return `bigbinary-${packageName.replace("@", "")}`;
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
reactModules: {
|
|
49
|
+
test: /[\\/]node_modules[\\/]react.*[\\/]/,
|
|
50
|
+
name: "react-modules",
|
|
51
|
+
priority: 10,
|
|
52
|
+
},
|
|
53
|
+
antd: {
|
|
54
|
+
test: /[\\/]node_modules[\\/]antd[\\/]/,
|
|
55
|
+
name: "antd",
|
|
56
|
+
priority: 10,
|
|
57
|
+
},
|
|
58
|
+
recharts: {
|
|
59
|
+
test: /[\\/]node_modules[\\/]recharts[\\/]/,
|
|
60
|
+
name: "recharts",
|
|
61
|
+
priority: 10,
|
|
62
|
+
},
|
|
63
|
+
emojiMart: {
|
|
64
|
+
test: /[\\/]node_modules[\\/]emoji-mart[\\/]/,
|
|
65
|
+
name: "emoji-mart",
|
|
66
|
+
priority: 10,
|
|
67
|
+
},
|
|
68
|
+
npmCommon: {
|
|
69
|
+
test: /[\\/]node_modules[\\/](zustand|ramda|formik|dayjs|axios|classnames|dompurify|popper.js|yup|qs|zustand|framer-motion|lowlight|tippy.js)[\\/]/,
|
|
70
|
+
name: "npm-common",
|
|
71
|
+
priority: 10,
|
|
72
|
+
},
|
|
73
|
+
npmRest: { test: /[\\/]node_modules[\\/]/, name: "npm-rest" },
|
|
74
|
+
},
|
|
32
75
|
},
|
|
33
76
|
},
|
|
34
77
|
module: { rules },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-commons-frontend",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
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>",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export var IGNORABLE_ERRORS_REGEX = /(window\.requestAnimationFrame|ResizeObserver|ChunkLoadError|window\.webkit\.messageHandlers|Request aborted|Network Error)/;
|
|
1
|
+
export var IGNORABLE_ERRORS_REGEX = /(window\.requestAnimationFrame|ResizeObserver|ChunkLoadError|window\.webkit\.messageHandlers|Request aborted|Network Error|Cannot redefine property: googletag)/;
|
|
2
2
|
export var IGNORABLE_ERROR_NAMES_REGEX = /(ChunkLoadError)/;
|
|
3
3
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","names":["IGNORABLE_ERRORS_REGEX","IGNORABLE_ERROR_NAMES_REGEX"],"sources":["../../../src/react-utils/HoneybadgerErrorBoundary/constants.js"],"sourcesContent":["export const IGNORABLE_ERRORS_REGEX =\n /(window\\.requestAnimationFrame|ResizeObserver|ChunkLoadError|window\\.webkit\\.messageHandlers|Request aborted|Network Error)/;\nexport const IGNORABLE_ERROR_NAMES_REGEX = /(ChunkLoadError)/;\n"],"mappings":"AAAA,OAAO,IAAMA,sBAAsB,GACjC,
|
|
1
|
+
{"version":3,"file":"constants.js","names":["IGNORABLE_ERRORS_REGEX","IGNORABLE_ERROR_NAMES_REGEX"],"sources":["../../../src/react-utils/HoneybadgerErrorBoundary/constants.js"],"sourcesContent":["export const IGNORABLE_ERRORS_REGEX =\n /(window\\.requestAnimationFrame|ResizeObserver|ChunkLoadError|window\\.webkit\\.messageHandlers|Request aborted|Network Error|Cannot redefine property: googletag)/;\nexport const IGNORABLE_ERROR_NAMES_REGEX = /(ChunkLoadError)/;\n"],"mappings":"AAAA,OAAO,IAAMA,sBAAsB,GACjC,iKAAiK;AACnK,OAAO,IAAMC,2BAA2B,GAAG,kBAAkB"}
|