Skip to content

Commit 17d8e24

Browse files
committed
deprecate the interpolate config
1 parent 622acc6 commit 17d8e24

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

src/compiler/compile.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,11 @@ exports.compileRoot = function (el, options) {
238238
*/
239239

240240
function compileNode (node, options) {
241+
/* istanbul ignore if */
242+
if (process.env.NODE_ENV !== 'production' && !config.interpolate) {
243+
_.deprecation.INTERPOLATE()
244+
}
245+
241246
var type = node.nodeType
242247
if (type === 1 && node.tagName !== 'SCRIPT') {
243248
return compileElement(node, options)

src/deprecations.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if (process.env.NODE_ENV !== 'production') {
3333
STRICT_MODE: function (type, id) {
3434
warn(
3535
'Falling through to parent when resolving ' + type + ' with id "' + id +
36-
'". Strict mode will default to `true` in 1.0.0. ' +
36+
'". Strict mode will be the default in 1.0.0. ' +
3737
'See https://github.com/yyx990803/vue/issues/1170 for details.'
3838
)
3939
},
@@ -201,6 +201,14 @@ if (process.env.NODE_ENV !== 'production') {
201201
'Use v-for to render the options. See https://github.com/yyx990803/vue/issues/1229 ' +
202202
'for more details.'
203203
)
204+
},
205+
206+
INTERPOLATE: function () {
207+
/* istanbul ignore next */
208+
warn(
209+
'The global "interpolate" config will be deprecated in 1.0.0. Use "v-pre" ' +
210+
'on elements that should be skipped by the template compiler.'
211+
)
204212
}
205213

206214
}

0 commit comments

Comments
 (0)