Skip to content

Commit 1a55195

Browse files
committed
ensure injected css modules computed is a fresh object
1 parent 8413468 commit 1a55195

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/component-normalizer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@ module.exports = function normalizeComponent (
3232

3333
// inject cssModules
3434
if (cssModules) {
35-
var computed = options.computed || (options.computed = {})
35+
var computed = Object.create(options.computed || null)
3636
Object.keys(cssModules).forEach(function (key) {
3737
var module = cssModules[key]
3838
computed[key] = function () { return module }
3939
})
40+
options.computed = computed
4041
}
4142

4243
return {

0 commit comments

Comments
 (0)