forked from charmverse/app.charmverse.io
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.base.js
62 lines (60 loc) · 1.49 KB
/
next.base.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
const esmModules = [
'@bangle.dev/base-components',
'@bangle.dev/utils',
'prosemirror-utils-bangle',
'@popperjs/core',
'@fullcalendar/common',
'@fullcalendar/core',
'@fullcalendar/daygrid',
'@fullcalendar/interaction',
'@fullcalendar/react',
'dnd-core',
'react-dnd',
'@react-dnd/invariant',
'@react-dnd/asap',
'@react-dnd/shallowequal',
'react-pdf',
'react-dnd-html5-backend',
'react-dnd-multi-backend',
'react-dnd-touch-backend',
'dnd-multi-backend',
'dnd-core',
'@react-dnd/invariant',
'@react-dnd/asap',
'@react-dnd/shallowequal',
'react-dnd-preview',
'redux',
'@hookform/resolvers',
'uuid',
'data-uri-to-buffer',
'fetch-blob',
'lodash-es',
// '@babel/runtime',
'formdata-polyfill',
'jose',
'nanoid',
'@charmverse/core',
'@lens-protocol',
'wagmi' // compile wagmi to avoid error: QueryClientProvider must be used as a child of ReactQueryClientProvider when running app
];
// this breaks the dev environment with an error when importing MUI icons: Cannot use 'import.meta' outside a module
if (process.env.NODE_ENV === 'test') {
esmModules.push('@babel/runtime');
esmModules.push('isows');
// related modules
esmModules.push(
...[
'wagmi',
'@wagmi/core',
'@wagmi/connectors',
'@walletconnect/core',
'@walletconnect/utils',
'@walletconnect/ethereum-provider',
'@walletconnect/relay-auth',
'preact',
'uint8arrays',
'multiformats'
]
);
}
exports.esmModules = esmModules;