From bb0fd44d9522087a0a2d44b8775b0af0418971ea Mon Sep 17 00:00:00 2001 From: Rostislav Wolny Date: Wed, 8 Sep 2021 16:08:08 +0200 Subject: [PATCH] Add fallback dummy nodejs path module The path is required in css module which we use for parsing custom css string in the form editor. We don't use functionality which is dependent on nodejs path module so we can use "dummy" module. Alternatively we could install a polyfill for brower for the path module but it would increase a package size with functions we don't use. [MAILPOET-3214] --- webpack.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/webpack.config.js b/webpack.config.js index c98bea4e11..3b0a67be7a 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -43,6 +43,7 @@ const baseConfig = { ], fallback: { fs: false, + path: false, // path is used in css module, but we don't use the functionality which requires it }, extensions: ['.js', '.jsx', '.ts', '.tsx'], alias: {