Skip to content

Commit 8650bb4

Browse files
authored
Update Rollup and plugins (#225)
* chore(deps): Update rollup and plugins * chore(ci): Switch to Node 14 in CI
1 parent 3b1f1dc commit 8650bb4

File tree

5 files changed

+1641
-821
lines changed

5 files changed

+1641
-821
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v2
10-
- name: Set up Node 10
10+
- name: Set up Node 14
1111
uses: actions/setup-node@v2
1212
with:
13-
node-version: 10
13+
node-version: 14
1414
cache: "yarn"
1515
- name: Install dependencies
1616
run: yarn install

build/rollup.esm.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import vue from "rollup-plugin-vue";
2-
import buble from "rollup-plugin-buble";
2+
import buble from "@rollup/plugin-buble";
33
import filesize from "rollup-plugin-filesize";
4-
import uglify from "rollup-plugin-uglify";
5-
import json from "rollup-plugin-json";
4+
import { uglify } from "rollup-plugin-uglify";
5+
import json from "@rollup/plugin-json";
66

77
export default {
88
input: "src/vue-autosuggest.js",

build/rollup.umd.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import vue from "rollup-plugin-vue";
2-
import buble from "rollup-plugin-buble";
2+
import buble from "@rollup/plugin-buble";
33
import filesize from "rollup-plugin-filesize";
4-
import resolve from "rollup-plugin-node-resolve";
5-
import commonjs from "rollup-plugin-commonjs";
6-
import uglify from "rollup-plugin-uglify";
7-
import replace from "rollup-plugin-replace";
8-
import json from "rollup-plugin-json";
4+
import resolve from "@rollup/plugin-node-resolve";
5+
import commonjs from "@rollup/plugin-commonjs";
6+
import { uglify } from "rollup-plugin-uglify";
7+
import replace from "@rollup/plugin-replace";
8+
import json from "@rollup/plugin-json";
99

1010
export default {
1111
input: "src/vue-autosuggest.js",

package.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@
7171
"vue": ">= 2.5.0"
7272
},
7373
"devDependencies": {
74+
"@rollup/plugin-buble": "^0.21.3",
75+
"@rollup/plugin-commonjs": "^21.0.2",
76+
"@rollup/plugin-json": "^4.1.0",
77+
"@rollup/plugin-node-resolve": "^13.1.3",
78+
"@rollup/plugin-replace": "^3.1.0",
7479
"@storybook/addon-actions": "^3.2.16",
7580
"@storybook/vue": "3.2.15",
7681
"@vue/test-utils": "1.0.0-beta.25",
@@ -98,16 +103,10 @@
98103
"jest-serializer-vue": "^2.0.2",
99104
"kcd-scripts": "0.27.1",
100105
"prettier": "1.14.3",
101-
"rollup": "^0.56.2",
102-
"rollup-plugin-buble": "^0.19.2",
103-
"rollup-plugin-commonjs": "^8.3.0",
104-
"rollup-plugin-filesize": "^1.0.1",
105-
"rollup-plugin-json": "^2.1.1",
106-
"rollup-plugin-node-resolve": "^3.0.3",
107-
"rollup-plugin-replace": "^2.0.0",
108-
"rollup-plugin-uglify": "^3.0.0",
109-
"rollup-plugin-vue": "3.0.0",
110-
"rollup-watch": "^4.3.1",
106+
"rollup": "^2.68.0",
107+
"rollup-plugin-filesize": "^9.1.2",
108+
"rollup-plugin-uglify": "^6.0.4",
109+
"rollup-plugin-vue": "5",
111110
"sinon": "4.1.2",
112111
"vue": "2.5.18",
113112
"vue-jest": "2.6.0",

0 commit comments

Comments
 (0)