-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
42 lines (39 loc) · 1.09 KB
/
next.config.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
const withTM = require("next-transpile-modules")([
"@mui/material",
"@mui/lab",
"@mui/system",
"@blocto/sdk",
"@project-serum/sol-wallet-adapter",
"@solana/wallet-adapter-base",
"@solana/wallet-adapter-react",
"@solana/wallet-adapter-wallets",
"@solana/wallet-adapter-react-ui",
"@solana/wallet-adapter-bitpie",
"@solana/wallet-adapter-blocto",
"@solana/wallet-adapter-coin98",
"@solana/wallet-adapter-ledger",
"@solana/wallet-adapter-mathwallet",
"@solana/wallet-adapter-phantom",
"@solana/wallet-adapter-safepal",
"@solana/wallet-adapter-slope",
"@solana/wallet-adapter-solflare",
"@solana/wallet-adapter-sollet",
"@solana/wallet-adapter-solong",
"@solana/wallet-adapter-torus",
]); // pass the modules you would like to see transpiled
module.exports = withTM({
reactStrictMode: true,
webpack: (config) => {
config.resolve.alias = {
...config.resolve.alias,
"@mui/styled-engine": "@mui/styled-engine-sc",
};
config.resolve.fallback = {
fs: false,
os: false,
path: false,
crypto: false,
};
return config;
},
});