@bigbinary/neeto-commons-frontend 4.13.3 → 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,7 @@ 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");
6
7
  const {
7
8
  nodeModulesPolyfillPlugin,
8
9
  } = require("esbuild-plugins-node-modules-polyfill");
@@ -61,6 +62,7 @@ const config = {
61
62
  path.replace("@bigbinary/neetoui", "@bigbinary/neetoui/dist"),
62
63
  logger: sass.Logger.silent,
63
64
  }),
65
+ yamlPlugin(),
64
66
  ],
65
67
  conditions: ["style"],
66
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.3",
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,7 @@
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",
150
152
  "esbuild-plugins-node-modules-polyfill": "^1.6.8",
151
153
  "esbuild-rails": "^1.0.7",
152
154
  "esbuild-sass-plugin": "^3.3.1",
@@ -240,8 +242,8 @@
240
242
  "dompurify": "^2.4.0",
241
243
  "dotenv-webpack": "^8.0.1",
242
244
  "esbuild": "^0.24.0",
243
- "esbuild-plugins-node-modules-polyfill": "^1.6.8",
244
245
  "esbuild-plugin-svgr": "^3.1.0",
246
+ "esbuild-plugins-node-modules-polyfill": "^1.6.8",
245
247
  "esbuild-rails": "^1.0.7",
246
248
  "esbuild-sass-plugin": "^3.3.1",
247
249
  "formik": "2.2.9",