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]
This commit is contained in:
Rostislav Wolny
2021-09-08 16:08:08 +02:00
committed by Veljko V
parent 010bc3b8d8
commit bb0fd44d95

View File

@@ -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: {