We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
require.resolve
cache-loader
1 parent 1aaedc7 commit d3fa467Copy full SHA for d3fa467
lib/loaders/pitcher.js
@@ -128,7 +128,7 @@ module.exports.pitch = function (remainingRequest) {
128
if (query.type === `template`) {
129
const path = require('path')
130
const cacheLoader = cacheDirectory && cacheIdentifier
131
- ? [`cache-loader?${JSON.stringify({
+ ? [`${require.resolve('cache-loader')}?${JSON.stringify({
132
// For some reason, webpack fails to generate consistent hash if we
133
// use absolute paths here, even though the path is only used in a
134
// comment. For now we have to ensure cacheDirectory is a relative path.
0 commit comments