(config, {isServer})
| 4 | /** @type {import('next').NextConfig} */ |
| 5 | const nextConfig = { |
| 6 | webpack(config, {isServer}) { |
| 7 | if (!isServer) { |
| 8 | // Don't include any locale strings in the client JS bundle. |
| 9 | config.plugins.push(localesPlugin.webpack({locales: []})); |
| 10 | } |
| 11 | return config; |
| 12 | }, |
| 13 | transpilePackages: ['@adobe/react-spectrum', '@react-spectrum/*', '@spectrum-icons/*'].flatMap( |
| 14 | spec => glob.sync(`${spec}`, {cwd: 'node_modules/'}) |
| 15 | ) |