Skip to content

Commit 443694a

Browse files
committed
fix multi clause deprecation warning in production build
1 parent 56edffc commit 443694a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/deprecations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ if (process.env.NODE_ENV !== 'production') {
7373
)
7474
},
7575

76-
MUTI_CLAUSES: function () {
76+
MULTI_CLAUSES: function () {
7777
warn(
7878
'Directives will no longer support multiple clause syntax in 1.0.0.' +
7979
newBindingSyntaxLink

src/parsers/directive.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ exports.parse = function (s) {
182182

183183
cache.put(s, dirs)
184184

185-
if (dirs.length > 1) {
186-
_.deprecation.MUTI_CLAUSES()
185+
if (process.env.NODE_ENV !== 'production' && dirs.length > 1) {
186+
_.deprecation.MULTI_CLAUSES()
187187
}
188188

189189
return dirs

0 commit comments

Comments
 (0)