From 5c2179f6d965a8cdef28e983c87f48bfe938a132 Mon Sep 17 00:00:00 2001 From: Amour1688 Date: Wed, 29 Jul 2020 09:30:06 +0800 Subject: [PATCH] feat: remove `compatibleProps` --- .../babel-helper-vue-compatible-props/README.md | 3 --- .../babel-helper-vue-compatible-props/index.js | 12 ------------ .../package.json | 16 ---------------- packages/babel-plugin-jsx/package.json | 1 - 4 files changed, 32 deletions(-) delete mode 100644 packages/babel-helper-vue-compatible-props/README.md delete mode 100644 packages/babel-helper-vue-compatible-props/index.js delete mode 100644 packages/babel-helper-vue-compatible-props/package.json diff --git a/packages/babel-helper-vue-compatible-props/README.md b/packages/babel-helper-vue-compatible-props/README.md deleted file mode 100644 index b06fea9..0000000 --- a/packages/babel-helper-vue-compatible-props/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# @ant-design-vue/babel-helper-vue-compatible-props - -> compatible with Vue 2.x diff --git a/packages/babel-helper-vue-compatible-props/index.js b/packages/babel-helper-vue-compatible-props/index.js deleted file mode 100644 index ee86108..0000000 --- a/packages/babel-helper-vue-compatible-props/index.js +++ /dev/null @@ -1,12 +0,0 @@ -const transformOn = require('@ant-design-vue/babel-helper-vue-transform-on'); - -const compatibleProps = (attr) => { - const { - props, on = {}, attrs, ...rest - } = attr || {}; - return { - ...props, ...attrs, ...transformOn(on), ...rest, - }; -}; - -module.exports = compatibleProps; diff --git a/packages/babel-helper-vue-compatible-props/package.json b/packages/babel-helper-vue-compatible-props/package.json deleted file mode 100644 index 4df05f6..0000000 --- a/packages/babel-helper-vue-compatible-props/package.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "@ant-design-vue/babel-helper-vue-compatible-props", - "version": "1.0.0", - "description": "compatible with Vue 2.x", - "author": "Amour1688 ", - "homepage": "https://github.com/vueComponent/jsx#readme", - "license": "MIT", - "main": "index.js", - "repository": { - "type": "git", - "url": "git+https://github.com/vueComponent/jsx.git" - }, - "dependencies": { - "@ant-design-vue/babel-helper-vue-transform-on": "^1.0.1" - } -} diff --git a/packages/babel-plugin-jsx/package.json b/packages/babel-plugin-jsx/package.json index 85c6af1..b96aa19 100644 --- a/packages/babel-plugin-jsx/package.json +++ b/packages/babel-plugin-jsx/package.json @@ -23,7 +23,6 @@ "dist" ], "dependencies": { - "@ant-design-vue/babel-helper-vue-compatible-props": "^1.0.0", "@ant-design-vue/babel-helper-vue-transform-on": "^1.0.0", "@babel/helper-module-imports": "^7.0.0", "@babel/plugin-syntax-jsx": "^7.0.0",