MCPcopy Create free account
hub / github.com/adobe/react-spectrum / webpack

Function webpack

examples/next-app-csp/next.config.js:6–12  ·  view source on GitHub ↗
(config, {isServer})

Source from the content-addressed store, hash-verified

4/** @type {import('next').NextConfig} */
5const 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 )

Callers

nothing calls this directly

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected