Skip to content

Commit 47fc863

Browse files
authored
Revert "feat: add umd bundle (#457)" (#458)
This reverts commit b0cddda.
1 parent b0cddda commit 47fc863

File tree

4 files changed

+3
-81
lines changed

4 files changed

+3
-81
lines changed

packages/babel-plugin-jsx/babel.config.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@ module.exports = {
55
],
66
plugins: [
77
/* eslint-disable-next-line global-require */
8-
[
9-
!process.env.MODE
10-
? require('./dist/index.js')
11-
: require('./dist/vue-jsx.min.js'),
12-
{
13-
optimize: true,
14-
isCustomElement: (tag) => /^x-/.test(tag)
15-
},
16-
],
8+
[require('./dist/index.js'), { optimize: true, isCustomElement: (tag) => /^x-/.test(tag) }],
179
],
1810
};

packages/babel-plugin-jsx/package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@
66
"homepage": "https://github.com/vuejs/jsx-next/tree/dev/packages/babel-plugin-jsx#readme",
77
"license": "MIT",
88
"main": "dist/index.js",
9-
"unpkg": "dist/vue-jsx.min.js",
109
"repository": {
1110
"type": "git",
1211
"url": "git+https://github.com/vuejs/jsx-next.git"
1312
},
1413
"scripts": {
15-
"build": "rm -rf dist && tsc && rollup -c rollup.config.js",
14+
"build": "tsc",
1615
"lint": "eslint 'src/*.ts'",
17-
"test": "yarn build && jest --coverage && jest --clearCache && MODE=umd jest --coverage",
16+
"test": "yarn build && jest --coverage",
1817
"prepublishOnly": "yarn build"
1918
},
2019
"bugs": {
@@ -43,11 +42,8 @@
4342
"@typescript-eslint/parser": "^4.0.1",
4443
"@vue/compiler-dom": "3.0.5",
4544
"@vue/test-utils": "2.0.0-beta.2",
46-
"esbuild": "^0.12.9",
4745
"jest": "^26.0.1",
4846
"regenerator-runtime": "^0.13.5",
49-
"rollup": "^2.52.2",
50-
"rollup-plugin-esbuild": "^4.5.0",
5147
"ts-jest": "^26.1.3",
5248
"typescript": "^4.2.3",
5349
"vue": "3.0.7"

packages/babel-plugin-jsx/rollup.config.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

yarn.lock

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -2032,14 +2032,6 @@
20322032
"@octokit/openapi-types" "^2.0.0"
20332033
"@types/node" ">= 8"
20342034

2035-
"@rollup/pluginutils@^4.1.0":
2036-
version "4.1.0"
2037-
resolved "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.1.0.tgz#0dcc61c780e39257554feb7f77207dceca13c838"
2038-
integrity sha512-TrBhfJkFxA+ER+ew2U2/fHbebhLT/l/2pRk0hfj9KusXUuRXd2v0R58AfaZK9VXDQ4TogOSEmICVrQAA3zFnHQ==
2039-
dependencies:
2040-
estree-walker "^2.0.1"
2041-
picomatch "^2.2.2"
2042-
20432035
"@sinonjs/commons@^1.7.0":
20442036
version "1.8.1"
20452037
resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.8.1.tgz#e7df00f98a203324f6dc7cc606cad9d4a8ab2217"
@@ -4721,11 +4713,6 @@ es6-promisify@^5.0.0:
47214713
dependencies:
47224714
es6-promise "^4.0.3"
47234715

4724-
esbuild@^0.12.9:
4725-
version "0.12.9"
4726-
resolved "https://registry.npmjs.org/esbuild/-/esbuild-0.12.9.tgz#bed4e7087c286cd81d975631f77d47feb1660070"
4727-
integrity sha512-MWRhAbMOJ9RJygCrt778rz/qNYgA4ZVj6aXnNPxFjs7PmIpb0fuB9Gmg5uWrr6n++XKwwm/RmSz6RR5JL2Ocsw==
4728-
47294716
escalade@^3.1.1:
47304717
version "3.1.1"
47314718
resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40"
@@ -5410,11 +5397,6 @@ fsevents@~2.1.2:
54105397
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.1.3.tgz#fb738703ae8d2f9fe900c33836ddebee8b97f23e"
54115398
integrity sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==
54125399

5413-
fsevents@~2.3.2:
5414-
version "2.3.2"
5415-
resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a"
5416-
integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==
5417-
54185400
function-bind@^1.1.1:
54195401
version "1.1.1"
54205402
resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d"
@@ -6920,11 +6902,6 @@ jest@^26.0.1:
69206902
import-local "^3.0.2"
69216903
jest-cli "^26.6.3"
69226904

6923-
joycon@^3.0.1:
6924-
version "3.0.1"
6925-
resolved "https://registry.npmjs.org/joycon/-/joycon-3.0.1.tgz#9074c9b08ccf37a6726ff74a18485f85efcaddaf"
6926-
integrity sha512-SJcJNBg32dGgxhPtM0wQqxqV0ax9k/9TaUskGDSJkSFSQOEWWvQ3zzWdGQRIUry2j1zA5+ReH13t0Mf3StuVZA==
6927-
69286905
js-tokens@^4.0.0:
69296906
version "4.0.0"
69306907
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
@@ -7034,11 +7011,6 @@ json5@^1.0.1:
70347011
dependencies:
70357012
minimist "^1.2.0"
70367013

7037-
jsonc-parser@^3.0.0:
7038-
version "3.0.0"
7039-
resolved "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.0.0.tgz#abdd785701c7e7eaca8a9ec8cf070ca51a745a22"
7040-
integrity sha512-fQzRfAbIBnR0IQvftw9FJveWiHp72Fg20giDrHz6TdfB12UH/uue0D3hm57UB5KgAVuniLMCaS8P1IMj9NR7cA==
7041-
70427014
jsonfile@^4.0.0:
70437015
version "4.0.0"
70447016
resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb"
@@ -8565,11 +8537,6 @@ picomatch@^2.0.4, picomatch@^2.0.5, picomatch@^2.2.1:
85658537
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.2.tgz#21f333e9b6b8eaff02468f5146ea406d345f4dad"
85668538
integrity sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==
85678539

8568-
picomatch@^2.2.2:
8569-
version "2.3.0"
8570-
resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972"
8571-
integrity sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==
8572-
85738540
pify@^2.0.0, pify@^2.3.0:
85748541
version "2.3.0"
85758542
resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c"
@@ -9360,22 +9327,6 @@ ripemd160@^2.0.0, ripemd160@^2.0.1:
93609327
hash-base "^3.0.0"
93619328
inherits "^2.0.1"
93629329

9363-
rollup-plugin-esbuild@^4.5.0:
9364-
version "4.5.0"
9365-
resolved "https://registry.npmjs.org/rollup-plugin-esbuild/-/rollup-plugin-esbuild-4.5.0.tgz#0fbcb6d2d651d87dc540c4fc3b2db669f48da1f0"
9366-
integrity sha512-ieUd3AoYWsN6Tfp0LBNnC+QpdhKjDEaH4NK3ghuEXOH56/7TAtD+hMbD9vSWZgsGSbaqCkrn4j6PaUj1vOSt1g==
9367-
dependencies:
9368-
"@rollup/pluginutils" "^4.1.0"
9369-
joycon "^3.0.1"
9370-
jsonc-parser "^3.0.0"
9371-
9372-
rollup@^2.52.2:
9373-
version "2.52.2"
9374-
resolved "https://registry.npmjs.org/rollup/-/rollup-2.52.2.tgz#a7e90d10ddae3e8472c2857bd9f44b09ef34a47a"
9375-
integrity sha512-4RlFC3k2BIHlUsJ9mGd8OO+9Lm2eDF5P7+6DNQOp5sx+7N/1tFM01kELfbxlMX3MxT6owvLB1ln4S3QvvQlbUA==
9376-
optionalDependencies:
9377-
fsevents "~2.3.2"
9378-
93799330
rsvp@^4.8.4:
93809331
version "4.8.5"
93819332
resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-4.8.5.tgz#c8f155311d167f68f21e168df71ec5b083113734"

0 commit comments

Comments
 (0)