MCPcopy Create free account
hub / github.com/downshift-js/downshift / configureWebpack

Function configureWebpack

docusaurus/plugins/webpack5polyfills.js:7–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5 return {
6 name: 'custom-docusaurus-webpack-config-plugin',
7 configureWebpack() {
8 return {
9 resolve: {
10 fallback: {
11 fs: false,
12 module: false,
13 },
14 },
15 module: {
16 rules: [
17 // Some dependencies ship ESM that does directory-style imports
18 // (e.g. yaml's browser dist importing 'buffer'). Webpack 5 strict
19 // ESM resolution requires fully specified paths, so relax it.
20 {
21 test: /\.m?js$/,
22 resolve: {fullySpecified: false},
23 },
24 ],
25 },
26 plugins: [new NodePolyfillPlugin()],
27 }
28 },
29 }
30}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…