Skip to content

Commit 62182b1

Browse files
committed
add before scope id
1 parent c826475 commit 62182b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/loader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ module.exports = function (content) {
210210

211211
var parts = parse(content, fileName, this.sourceMap)
212212
// var hasGlobal = parts.styles.some(function (s) { return !!s.global })
213-
// var scopeId = hasGlobal ? '@GLOBAL' : genId(filePath)
214-
var scopeId = genId(filePath)
213+
// var scopeId = hasGlobal ? '@GLOBAL' : ('data-v-' + genId(filePath))
214+
var scopeId = 'data-v-' + genId(filePath)
215215
var output = 'var __vue_exports__, __vue_options__\n'
216216

217217
// css modules

0 commit comments

Comments
 (0)