@bigbinary/neeto-commons-frontend 4.13.1 → 4.13.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.
@@ -3,6 +3,9 @@ const path = require("path");
3
3
 
4
4
  const dotenv = require("dotenv");
5
5
  const svgPlugin = require("esbuild-plugin-svgr");
6
+ const {
7
+ nodeModulesPolyfillPlugin,
8
+ } = require("esbuild-plugins-node-modules-polyfill");
6
9
  const rails = require("esbuild-rails");
7
10
  const { sassPlugin } = require("esbuild-sass-plugin");
8
11
  const postcss = require("postcss");
@@ -45,6 +48,7 @@ const config = {
45
48
  babelPlugin(),
46
49
  virtualizedPlugin(),
47
50
  svgPlugin(),
51
+ nodeModulesPolyfillPlugin({ modules: { events: true } }),
48
52
  sassPlugin({
49
53
  transform: async source => {
50
54
  const { css } = await postcss(postCssConfig.plugins).process(source, {
@@ -79,6 +83,7 @@ const config = {
79
83
  "process.env.RAILS_ENV": "'development'",
80
84
  "process.env.NODE_DEBUG": "'development'",
81
85
  ...createDefinitions(process),
86
+ "process.env": "{}",
82
87
  },
83
88
  };
84
89
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-commons-frontend",
3
- "version": "4.13.1",
3
+ "version": "4.13.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>",
@@ -147,6 +147,7 @@
147
147
  "dompurify": "^2.4.0",
148
148
  "esbuild": "^0.24.0",
149
149
  "esbuild-plugin-svgr": "^3.1.0",
150
+ "esbuild-plugins-node-modules-polyfill": "^1.6.8",
150
151
  "esbuild-rails": "^1.0.7",
151
152
  "esbuild-sass-plugin": "^3.3.1",
152
153
  "eslint": "8.14.0",
@@ -239,6 +240,7 @@
239
240
  "dompurify": "^2.4.0",
240
241
  "dotenv-webpack": "^8.0.1",
241
242
  "esbuild": "^0.24.0",
243
+ "esbuild-plugins-node-modules-polyfill": "^1.6.8",
242
244
  "esbuild-plugin-svgr": "^3.1.0",
243
245
  "esbuild-rails": "^1.0.7",
244
246
  "esbuild-sass-plugin": "^3.3.1",