()
| 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…