MCPcopy Create free account
hub / github.com/dabbott/react-native-express / webpack

Function webpack

next.config.js:28–39  ·  view source on GitHub ↗
(config, options)

Source from the content-addressed store, hash-verified

26const withRawExampleLoader = (nextConfig) => ({
27 ...nextConfig,
28 webpack(config, options) {
29 config.module.rules.push({
30 test: /examples(\/|\\)files(\/|\\).*$/,
31 use: 'raw-loader',
32 })
33
34 if (typeof nextConfig.webpack === 'function') {
35 return nextConfig.webpack(config, options)
36 }
37
38 return config
39 },
40})
41
42module.exports = withRawExampleLoader(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected