Skip to content

Commit c5cee00

Browse files
committed
chore: update rollup
Update rollup and plugins, and remove some plugins. We'll use Rollup for now only to bundle and minify our code, but otherwise we'll write reasonably modern code and not need a transform.
1 parent d6eb6cf commit c5cee00

File tree

2 files changed

+10
-17
lines changed

2 files changed

+10
-17
lines changed

Diff for: build/build.js

+5-10
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import rollup from 'rollup';
2-
import buble from 'rollup-plugin-buble';
3-
import commonjs from 'rollup-plugin-commonjs';
4-
import nodeResolve from 'rollup-plugin-node-resolve';
5-
import { uglify } from 'rollup-plugin-uglify';
6-
import replace from 'rollup-plugin-replace';
1+
import * as rollup from 'rollup';
2+
import commonjs from '@rollup/plugin-commonjs';
3+
import nodeResolve from '@rollup/plugin-node-resolve';
4+
import uglify from '@rollup/plugin-terser';
5+
import replace from '@rollup/plugin-replace';
76
import chokidar from 'chokidar';
87
import path from 'path';
98
import { relative } from './util.js';
@@ -28,10 +27,6 @@ async function build(opts) {
2827
.rollup({
2928
input: opts.input,
3029
plugins: (opts.plugins || []).concat([
31-
buble({
32-
transforms: {
33-
dangerousForOf: true
34-
}}),
3530
commonjs(),
3631
nodeResolve(),
3732
replace({

Diff for: package.json

+5-7
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@
7979
"@babel/preset-env": "^7.11.5",
8080
"@eslint/js": "^8.43.0",
8181
"@playwright/test": "^1.18.1",
82+
"@rollup/plugin-commonjs": "^25.0.2",
83+
"@rollup/plugin-node-resolve": "^15.1.0",
84+
"@rollup/plugin-replace": "^5.0.2",
85+
"@rollup/plugin-terser": "^0.4.3",
8286
"@types/eslint": "^8.40.2",
8387
"autoprefixer-stylus": "^1.0.0",
8488
"axios": "^0.21.1",
@@ -105,13 +109,7 @@
105109
"npm-run-all": "^4.1.5",
106110
"prettier": "^2.8.8",
107111
"rimraf": "^3.0.0",
108-
"rollup": "^1.23.1",
109-
"rollup-plugin-async": "^1.2.0",
110-
"rollup-plugin-buble": "^0.19.8",
111-
"rollup-plugin-commonjs": "^10.1.0",
112-
"rollup-plugin-node-resolve": "^5.2.0",
113-
"rollup-plugin-replace": "^2.2.0",
114-
"rollup-plugin-uglify": "^6.0.4",
112+
"rollup": "^3.25.3",
115113
"serve-handler": "^6.1.2",
116114
"stylus": "^0.59.0",
117115
"vue2": "npm:vue@^2.6.12",

0 commit comments

Comments
 (0)