Skip to content

Commit c497b92

Browse files
committed
fix(config): add attachToDocument conditional deprecation message
resolves vuejs#1545
1 parent 44ac570 commit c497b92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/shared/validate-options.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
} from './validators'
88
import { VUE_VERSION } from './consts'
99
import { compileTemplateForSlots } from './compile-template'
10-
import { throwError, warn } from './util'
10+
import { throwError, warnDeprecated } from './util'
1111
import { validateSlots } from './validate-slots'
1212

1313
function vueExtendUnsupportedOption(option) {
@@ -34,7 +34,7 @@ export function validateOptions(options, component) {
3434
)
3535
}
3636
if ('attachToDocument' in options) {
37-
warn(
37+
warnDeprecated(
3838
`options.attachToDocument is deprecated in favor of options.attachTo and will be removed in a future release`
3939
)
4040
}

0 commit comments

Comments
 (0)