perf: replace h with createVNode for PatchFlags (#6)

* chore: disable `no-bitwise` in eslint

* feat: replace h with createVNode for PatchFlags

* fix: vModel modifiers shift

* chore: rename v-_model to _model in sugar-v-model

* fix: hasRef will not always be false

* feat: Check if an attribute value is constant

* chore: pass null when children is empty

* chore: describe Transform JSX in test

* chore: add describe Patch Flags

* perf: import compatibleProps when opts.compatibleProps is true

* test: add coverage report (#7)

* refactor: cjs to esModule

Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
This commit is contained in:
Amour1688
2020-06-07 17:22:42 +08:00
committed by GitHub
parent 88bf7cca93
commit 4c34cf1d5d
14 changed files with 902 additions and 547 deletions

View File

@@ -11,9 +11,10 @@
"url": "git+https://github.com/vueComponent/jsx.git"
},
"scripts": {
"dev": "webpack-dev-server",
"dev": "npm run build && webpack-dev-server",
"build": "rollup -c",
"lint": "eslint --ext .js src",
"test": "jest"
"test": "jest --coverage"
},
"bugs": {
"url": "https://github.com/vueComponent/jsx/issues"
@@ -30,12 +31,14 @@
"devDependencies": {
"@babel/core": "^7.9.6",
"@babel/preset-env": "^7.9.6",
"@rollup/plugin-babel": "^5.0.3",
"@vue/compiler-dom": "^3.0.0-beta.14",
"@vue/test-utils": "^2.0.0-alpha.6",
"babel-jest": "^26.0.1",
"babel-loader": "^8.1.0",
"jest": "^26.0.1",
"regenerator-runtime": "^0.13.5",
"rollup": "^2.13.1",
"vue": "^3.0.0-beta.14",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11",