I am working on a Webpack tool that can build itself. I am able to build the tool the first time but when I try to rebuild it a second time I get the error Cannot find module: swc-loader. The same issue exists when swapping swc-loader with babel-loader. My hunch is that this is related to webpack's resolveLoader
Here is a GitHub repository containing the tool.
Below are the steps to reproduce the issue:
src directory by running node src/index.jssrc directory again by running node dist/index.jsThe goal is to be able to run step 2 over and over again.
swc-loader is not included in the core lib and needs to be installed via package manager - yarn install --dev swc-loader
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With