Im using an inline style-loader call in a js file
const lessVar = require(`!!style-loader?{"esModule":false}!css-loader?{"esModule":false,"modules":"icss"}!less-loader!link.to.lessFile.less`);
and this error is thrown:
Module not found: Error: Can't resolve 'style-loader' in 'link/to/relative/file'
The webpack config for resolving loaders is set correctly so this seems to be a swc-loader issue
Im using an inline style-loader call in a js file
const lessVar = require(`!!style-loader?{"esModule":false}!css-loader?{"esModule":false,"modules":"icss"}!less-loader!link.to.lessFile.less`);
and this error is thrown:Module not found: Error: Can't resolve 'style-loader' in 'link/to/relative/file'
The webpack config for resolving loaders is set correctly so this seems to be a swc-loader issue