wip: testing compiler deprecation warnings

This commit is contained in:
Evan You 2021-04-12 09:09:00 -04:00
parent 24bab94a72
commit 422b13e798
3 changed files with 6 additions and 0 deletions

View File

@ -11,6 +11,7 @@
],
"buildOptions": {
"name": "VueCompilerCore",
"compat": true,
"formats": [
"esm-bundler",
"cjs"

View File

@ -14,6 +14,7 @@
"sideEffects": false,
"buildOptions": {
"name": "VueCompilerDOM",
"compat": true,
"formats": [
"esm-bundler",
"esm-browser",

View File

@ -92,6 +92,10 @@ export const transformOn: DirectiveTransform = (dir, node, context) => {
const { modifiers } = dir
if (!modifiers.length) return baseResult
if (__COMPAT__ && __DEV__ && modifiers.includes('native')) {
console.warn('.native modifier for v-on has been removed')
}
let { key, value: handlerExp } = baseResult.props[0]
const {
keyModifiers,