Skip to content

Commit 7a972d4

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 eb3706c commit 7a972d4

File tree

3 files changed

+523
-753
lines changed

3 files changed

+523
-753
lines changed

build/build.js

Lines changed: 5 additions & 10 deletions
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({

0 commit comments

Comments
 (0)