@bigbinary/neeto-commons-frontend 4.13.2 → 4.13.4

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.
@@ -3,6 +3,10 @@ const path = require("path");
3
3
 
4
4
  const dotenv = require("dotenv");
5
5
  const svgPlugin = require("esbuild-plugin-svgr");
6
+ const { yamlPlugin } = require("esbuild-plugin-yaml");
7
+ const {
8
+ nodeModulesPolyfillPlugin,
9
+ } = require("esbuild-plugins-node-modules-polyfill");
6
10
  const rails = require("esbuild-rails");
7
11
  const { sassPlugin } = require("esbuild-sass-plugin");
8
12
  const postcss = require("postcss");
@@ -45,6 +49,7 @@ const config = {
45
49
  babelPlugin(),
46
50
  virtualizedPlugin(),
47
51
  svgPlugin(),
52
+ nodeModulesPolyfillPlugin({ modules: { events: true } }),
48
53
  sassPlugin({
49
54
  transform: async source => {
50
55
  const { css } = await postcss(postCssConfig.plugins).process(source, {
@@ -57,6 +62,7 @@ const config = {
57
62
  path.replace("@bigbinary/neetoui", "@bigbinary/neetoui/dist"),
58
63
  logger: sass.Logger.silent,
59
64
  }),
65
+ yamlPlugin(),
60
66
  ],
61
67
  conditions: ["style"],
62
68
  logLevel: isWatchMode ? "info" : "error",
@@ -1,4 +1,5 @@
1
1
  /* eslint-disable import/extensions */
2
+ const { default: viteYaml } = require("@modyfi/vite-plugin-yaml");
2
3
  const { default: react } = require("@vitejs/plugin-react");
3
4
  const dotenv = require("dotenv");
4
5
 
@@ -16,12 +17,14 @@ dotenv.config({ path: ".env.development" });
16
17
  const port = process.env.DEVSERVER_PORT || 8000;
17
18
 
18
19
  const config = {
20
+ assestsInclude: ["**/*.yaml"],
19
21
  css: { postcss: postCssConfig },
20
22
  plugins: [
21
23
  svgr(),
22
24
  react({ babel: BABEL_CONFIG }),
23
25
  virtualizedPlugin(),
24
26
  prevalPlugin(),
27
+ viteYaml(),
25
28
  ],
26
29
  resolve: { extensions: esbuildConfig.resolveExtensions },
27
30
  server: { port, origin: `http://localhost:${port}` },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-commons-frontend",
3
- "version": "4.13.2",
3
+ "version": "4.13.4",
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>",
@@ -100,6 +100,7 @@
100
100
  "@faker-js/faker": "8.2.0",
101
101
  "@honeybadger-io/js": "^6.4.1",
102
102
  "@honeybadger-io/react": "^6.1.3",
103
+ "@modyfi/vite-plugin-yaml": "^1.1.0",
103
104
  "@rails/actioncable": "7.2.100",
104
105
  "@rollup/plugin-alias": "5.0.1",
105
106
  "@rollup/plugin-babel": "6.0.4",
@@ -147,6 +148,8 @@
147
148
  "dompurify": "^2.4.0",
148
149
  "esbuild": "^0.24.0",
149
150
  "esbuild-plugin-svgr": "^3.1.0",
151
+ "esbuild-plugin-yaml": "^0.0.1",
152
+ "esbuild-plugins-node-modules-polyfill": "^1.6.8",
150
153
  "esbuild-rails": "^1.0.7",
151
154
  "esbuild-sass-plugin": "^3.3.1",
152
155
  "eslint": "8.14.0",
@@ -240,6 +243,7 @@
240
243
  "dotenv-webpack": "^8.0.1",
241
244
  "esbuild": "^0.24.0",
242
245
  "esbuild-plugin-svgr": "^3.1.0",
246
+ "esbuild-plugins-node-modules-polyfill": "^1.6.8",
243
247
  "esbuild-rails": "^1.0.7",
244
248
  "esbuild-sass-plugin": "^3.3.1",
245
249
  "formik": "2.2.9",