Skip to content

Commit 659b546

Browse files
Merge pull request #16 from markusguenther/update_themr
Update themr.js to prevent breaking the merge when using ExtractTextPlugin
2 parents 74f966b + 6462756 commit 659b546

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/themr.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,7 @@ function merge(original = {}, mixin = {}) {
225225
switch (typeof originalValue) {
226226
case 'object': {
227227
//can't merge a non-object with an object
228-
throw new Error(`You are merging non-object ${mixinValue} with an object ${key}`)
229-
break
228+
throw new Error(`You are merging non-object ${mixinValue} with an object ${key}, (can occur when using empty or :global only base theme stylesheet)`)
230229
}
231230

232231
case 'undefined': {

0 commit comments

Comments
 (0)