Download next.js/test/integration/broken-webpack-plugin/next.config.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 305 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/broken-webpack-plugin/next.config.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/integration/broken-webpack-plugin/next.config.js
-
curl -L -o next.config.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/broken-webpack-plugin/next.config.js
305 Bytes
| class BrokenPlugin { | |
| apply(compiler) { | |
| compiler.hooks.watchRun.tapPromise('BrokenPlugin', async () => { | |
| throw new Error('oops') | |
| }) | |
| } | |
| } | |
| module.exports = { | |
| webpack(config, { isServer }) { | |
| if (!isServer) { | |
| config.plugins.push(new BrokenPlugin()) | |
| } | |
| return config | |
| }, | |
| } | |