Skip to content

Commit bdb13be

Browse files
committed
fix: ensure template cache uses unique identifier
1 parent 01cf322 commit bdb13be

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/loaders/pitcher.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ module.exports.pitch = function (remainingRequest) {
7272
// for templates: inject the template compiler & optional cache
7373
if (query.type === `template`) {
7474
const cacheLoader = cacheDirectory && cacheIdentifier
75-
? [`cache-loader?${JSON.stringify(options)}`]
75+
? [`cache-loader?${JSON.stringify({
76+
cacheDirectory,
77+
cacheIdentifier: cacheIdentifier + '-vue-loader-template'
78+
})}`]
7679
: []
7780
const request = genRequest([
7881
...cacheLoader,

0 commit comments

Comments
 (0)