@bigbinary/neeto-commons-frontend 4.13.5 → 4.13.7
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.
|
@@ -17,6 +17,22 @@ const VITE_BABEL_CONFIG = {
|
|
|
17
17
|
],
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
const BABEL_CONFIG = {
|
|
20
|
+
const BABEL_CONFIG = {
|
|
21
|
+
presets: ["@bigbinary/neeto"],
|
|
22
|
+
plugins: [
|
|
23
|
+
[
|
|
24
|
+
"module-resolver",
|
|
25
|
+
{
|
|
26
|
+
root: ["./src"],
|
|
27
|
+
alias: {
|
|
28
|
+
"dayjs/plugin/timezone":
|
|
29
|
+
"@bigbinary/neeto-commons-frontend/utils/timezonePlugin",
|
|
30
|
+
},
|
|
31
|
+
loglevel: "silent",
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
...TRANSFORM_RULES,
|
|
35
|
+
],
|
|
36
|
+
};
|
|
21
37
|
|
|
22
|
-
module.exports = {
|
|
38
|
+
module.exports = { BABEL_CONFIG, VITE_BABEL_CONFIG };
|
package/configs/esbuild/index.js
CHANGED
|
@@ -49,7 +49,7 @@ const config = {
|
|
|
49
49
|
babelPlugin(),
|
|
50
50
|
virtualizedPlugin(),
|
|
51
51
|
svgPlugin(),
|
|
52
|
-
nodeModulesPolyfillPlugin({ modules: { events: true } }),
|
|
52
|
+
nodeModulesPolyfillPlugin({ modules: { events: true, fs: true } }),
|
|
53
53
|
sassPlugin({
|
|
54
54
|
transform: async source => {
|
|
55
55
|
const { css } = await postcss(postCssConfig.plugins).process(source, {
|
|
@@ -77,7 +77,7 @@ const config = {
|
|
|
77
77
|
".svg": "file",
|
|
78
78
|
".ico": "file",
|
|
79
79
|
},
|
|
80
|
-
external: ["
|
|
80
|
+
external: ["path", "os", "events"],
|
|
81
81
|
alias,
|
|
82
82
|
jsx: "automatic",
|
|
83
83
|
resolveExtensions: [...commonResolve.extensions, ".jsx"],
|
package/configs/vite/index.js
CHANGED
|
@@ -38,7 +38,13 @@ const config = {
|
|
|
38
38
|
},
|
|
39
39
|
define: esbuildConfig.define,
|
|
40
40
|
root: "app/javascript/packs",
|
|
41
|
-
optimizeDeps: {
|
|
41
|
+
optimizeDeps: {
|
|
42
|
+
include: [
|
|
43
|
+
"@bigbinary/neeto-icons/typeface-logos",
|
|
44
|
+
"zustand/shallow",
|
|
45
|
+
"public-ip",
|
|
46
|
+
],
|
|
47
|
+
},
|
|
42
48
|
};
|
|
43
49
|
|
|
44
50
|
module.exports = { config };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-commons-frontend",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.7",
|
|
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>",
|