feat: should support passing object slots via JSX children (#204)

* feat: should support passing object slots via JSX children

* feat: add unit test

* feat: remove `cloneDeep` of `isSlot`

* chore(deps): add `@babel/template`
This commit is contained in:
Amour1688
2020-12-07 23:05:41 +08:00
committed by GitHub
parent b443f847ca
commit 5b6323f22a
6 changed files with 296 additions and 50 deletions

View File

@@ -11,11 +11,10 @@
"url": "git+https://github.com/vuejs/jsx-next.git"
},
"scripts": {
"dev": "npm run build && webpack-dev-server",
"build": "tsc",
"lint": "eslint 'src/*.ts'",
"test": "npm run build && jest --coverage",
"prepublishOnly": "npm run build"
"test": "yarn build && jest --coverage",
"prepublishOnly": "yarn build"
},
"bugs": {
"url": "https://github.com/vuejs/jsx-next/issues"
@@ -26,6 +25,7 @@
"dependencies": {
"@babel/helper-module-imports": "^7.0.0",
"@babel/plugin-syntax-jsx": "^7.0.0",
"@babel/template": "^7.0.0",
"@babel/traverse": "^7.0.0",
"@babel/types": "^7.0.0",
"@vue/babel-helper-vue-transform-on": "^1.0.0-rc.2",
@@ -48,4 +48,4 @@
"typescript": "^4.0.2",
"vue": "3.0.0"
}
}
}