Skip to content

Commit 126d5dd

Browse files
committed
refactor: update rollup build
1 parent 485b1ac commit 126d5dd

File tree

3 files changed

+61
-3
lines changed

3 files changed

+61
-3
lines changed

package.json

+5
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,17 @@
1111
"dist",
1212
"README.md"
1313
],
14+
"dependencies": {
15+
"lodash": "^4.17.15"
16+
},
1417
"devDependencies": {
1518
"@babel/core": "^7.9.0",
1619
"@babel/preset-env": "^7.8.4",
1720
"@babel/types": "^7.8.3",
21+
"@rollup/plugin-node-resolve": "^7.1.3",
1822
"@types/estree": "^0.0.42",
1923
"@types/jest": "^24.9.1",
24+
"@types/lodash": "^4.14.149",
2025
"@vue/compiler-sfc": "^3.0.0-alpha.12",
2126
"babel-jest": "^25.2.3",
2227
"babel-preset-jest": "^25.2.1",

rollup.config.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import ts from 'rollup-plugin-typescript2'
2+
import resolve from '@rollup/plugin-node-resolve'
23

34
import pkg from './package.json'
45

@@ -19,8 +20,8 @@ function createEntry(options) {
1920

2021
const config = {
2122
input,
22-
external: ['vue'],
23-
plugins: [],
23+
external: ['vue', 'lodash/mergeWith'],
24+
plugins: [resolve()],
2425
output: {
2526
banner,
2627
file: 'dist/vue-test-utils.other.js',

yarn.lock

+53-1
Original file line numberDiff line numberDiff line change
@@ -1067,6 +1067,26 @@
10671067
"@types/yargs" "^15.0.0"
10681068
chalk "^3.0.0"
10691069

1070+
"@rollup/plugin-node-resolve@^7.1.3":
1071+
version "7.1.3"
1072+
resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-7.1.3.tgz#80de384edfbd7bfc9101164910f86078151a3eca"
1073+
integrity sha512-RxtSL3XmdTAE2byxekYLnx+98kEUOrPHF/KRVjLH+DEIHy6kjIw7YINQzn+NXiH/NTrQLAwYs0GWB+csWygA9Q==
1074+
dependencies:
1075+
"@rollup/pluginutils" "^3.0.8"
1076+
"@types/resolve" "0.0.8"
1077+
builtin-modules "^3.1.0"
1078+
is-module "^1.0.0"
1079+
resolve "^1.14.2"
1080+
1081+
"@rollup/pluginutils@^3.0.8":
1082+
version "3.0.9"
1083+
resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-3.0.9.tgz#aa6adca2c45e5a1b950103a999e3cddfe49fd775"
1084+
integrity sha512-TLZavlfPAZYI7v33wQh4mTP6zojne14yok3DNSLcjoG/Hirxfkonn6icP5rrNWRn8nZsirJBFFpijVOJzkUHDg==
1085+
dependencies:
1086+
"@types/estree" "0.0.39"
1087+
estree-walker "^1.0.1"
1088+
micromatch "^4.0.2"
1089+
10701090
"@samverschueren/stream-to-observable@^0.3.0":
10711091
version "0.3.0"
10721092
resolved "https://registry.yarnpkg.com/@samverschueren/stream-to-observable/-/stream-to-observable-0.3.0.tgz#ecdf48d532c58ea477acfcab80348424f8d0662f"
@@ -1124,6 +1144,11 @@
11241144
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.42.tgz#8d0c1f480339efedb3e46070e22dd63e0430dd11"
11251145
integrity sha512-K1DPVvnBCPxzD+G51/cxVIoc2X8uUVl1zpJeE6iKcgHMj4+tbat5Xu4TjV7v2QSDbIeAfLi2hIk+u2+s0MlpUQ==
11261146

1147+
1148+
version "0.0.39"
1149+
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f"
1150+
integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==
1151+
11271152
"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0", "@types/istanbul-lib-coverage@^2.0.1":
11281153
version "2.0.1"
11291154
resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.1.tgz#42995b446db9a48a11a07ec083499a860e9138ff"
@@ -1151,6 +1176,11 @@
11511176
dependencies:
11521177
jest-diff "^24.3.0"
11531178

1179+
"@types/lodash@^4.14.149":
1180+
version "4.14.149"
1181+
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.149.tgz#1342d63d948c6062838fbf961012f74d4e638440"
1182+
integrity sha512-ijGqzZt/b7BfzcK9vTrS6MFljQRPn5BFWOx8oE0GYxribu6uV+aA9zZuXI1zc/etK9E8nrgdoF2+LgUw7+9tJQ==
1183+
11541184
"@types/node@*":
11551185
version "13.7.4"
11561186
resolved "https://registry.yarnpkg.com/@types/node/-/node-13.7.4.tgz#76c3cb3a12909510f52e5dc04a6298cdf9504ffd"
@@ -1161,6 +1191,13 @@
11611191
resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0"
11621192
integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==
11631193

1194+
1195+
version "0.0.8"
1196+
resolved "https://registry.yarnpkg.com/@types/resolve/-/resolve-0.0.8.tgz#f26074d238e02659e323ce1a13d041eee280e194"
1197+
integrity sha512-auApPaJf3NPfe18hSoJkp8EbZzer2ISk7o8mCC3M9he/a04+gbMF97NkpD2S8riMGvm4BMRI59/SZQSaLTKpsQ==
1198+
dependencies:
1199+
"@types/node" "*"
1200+
11641201
"@types/stack-utils@^1.0.1":
11651202
version "1.0.1"
11661203
resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-1.0.1.tgz#0a851d3bd96498fa25c33ab7278ed3bd65f06c3e"
@@ -1620,6 +1657,11 @@ [email protected], buffer-from@^1.0.0:
16201657
resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef"
16211658
integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==
16221659

1660+
builtin-modules@^3.1.0:
1661+
version "3.1.0"
1662+
resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-3.1.0.tgz#aad97c15131eb76b65b50ef208e7584cd76a7484"
1663+
integrity sha512-k0KL0aWZuBt2lrxrcASWDfwOLMnodeQjodT/1SxEQAXsHANgo6ZC/VEaSEHCXt7aSTZ4/4H5LKa+tBXmW7Vtvw==
1664+
16231665
cache-base@^1.0.1:
16241666
version "1.0.1"
16251667
resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2"
@@ -2124,6 +2166,11 @@ estree-walker@^0.8.1:
21242166
resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.8.1.tgz#6230ce2ec9a5cb03888afcaf295f97d90aa52b79"
21252167
integrity sha512-H6cJORkqvrNziu0KX2hqOMAlA2CiuAxHeGJXSIoKA/KLv229Dw806J3II6mKTm5xiDX1At1EXCfsOQPB+tMB+g==
21262168

2169+
estree-walker@^1.0.1:
2170+
version "1.0.1"
2171+
resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-1.0.1.tgz#31bc5d612c96b704106b477e6dd5d8aa138cb700"
2172+
integrity sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==
2173+
21272174
esutils@^2.0.2:
21282175
version "2.0.3"
21292176
resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64"
@@ -2735,6 +2782,11 @@ is-generator-fn@^2.0.0:
27352782
resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118"
27362783
integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==
27372784

2785+
is-module@^1.0.0:
2786+
version "1.0.0"
2787+
resolved "https://registry.yarnpkg.com/is-module/-/is-module-1.0.0.tgz#3258fb69f78c14d5b815d664336b4cffb6441591"
2788+
integrity sha1-Mlj7afeMFNW4FdZkM2tM/7ZEFZE=
2789+
27382790
is-number@^3.0.0:
27392791
version "3.0.0"
27402792
resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195"
@@ -4307,7 +4359,7 @@ [email protected]:
43074359
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b"
43084360
integrity sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=
43094361

4310-
4362+
[email protected], [email protected], resolve@^1.14.2, resolve@^1.3.2:
43114363
version "1.15.1"
43124364
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.15.1.tgz#27bdcdeffeaf2d6244b95bb0f9f4b4653451f3e8"
43134365
integrity sha512-84oo6ZTtoTUpjgNEr5SJyzQhzL72gaRodsSfyxC/AXRvwu0Yse9H8eF9IpGo7b8YetZhlI6v7ZQ6bKBFV/6S7w==

0 commit comments

Comments
 (0)