hard-source-webpack-plugin icon indicating copy to clipboard operation
hard-source-webpack-plugin copied to clipboard

Cached builds fail when using pug-loader with apply-loader

Open jergason opened this issue 6 years ago • 0 comments

I'm using apply-loader and pug-loader.

Actual Behavior

When loading pug files, my build fails when building from the cache. The build is successful without the HardSource plugin.

Is an error being thrown?

Example error:

ERROR in ./durp.pug
Module not found: Error: Can't resolve 'node_modules/pug-loader/index.js' in '/Users/j0d019y/code/webpack-hard-thingy-bug'
 @ ./durp.pug 1:10-152
 @ ./index.js

Steps to Reproduce

I've created a minimal repo that reproduces the error: https://github.com/jergason/webpack-hard-source-bug. Steps to reproduce are there.

Operating System, Node, and NPM dependency versions

Mac OS 10.13.4
Node 8.11.2

See https://github.com/jergason/webpack-hard-source-bug/blob/master/package.json for the dependencies.

jergason avatar May 28 '18 22:05 jergason