Closed m10 closed 2 years ago
@m10 Thank you for the report.
Resolving of modules under node_modules
was intentionally disabled to increase performance when used huge amount of required resources (e.g. images, icons) and because using of a npm module directly in pug template is very very rare case.
Now I activated revolving under node_modules
too.
Fixed version is 2.1.1
.
Requiring any modules defined in webpack configuration under resolve.modules does not seem to work currently. This also affects any npm modules under node_modules
Pug:
- const classnames = require('classnames')
;Error: