Skip to content

Commit

Permalink
chore: update rollup
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
trusktr committed Jun 30, 2023
1 parent eb3706c commit 7a972d4
Show file tree
Hide file tree
Showing 3 changed files with 523 additions and 753 deletions.
15 changes: 5 additions & 10 deletions build/build.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import rollup from 'rollup';
import buble from 'rollup-plugin-buble';
import commonjs from 'rollup-plugin-commonjs';
import nodeResolve from 'rollup-plugin-node-resolve';
import { uglify } from 'rollup-plugin-uglify';
import replace from 'rollup-plugin-replace';
import * as rollup from 'rollup';
import commonjs from '@rollup/plugin-commonjs';
import nodeResolve from '@rollup/plugin-node-resolve';
import uglify from '@rollup/plugin-terser';
import replace from '@rollup/plugin-replace';
import chokidar from 'chokidar';
import path from 'path';
import { relative } from './util.js';
Expand All @@ -28,10 +27,6 @@ async function build(opts) {
.rollup({
input: opts.input,
plugins: (opts.plugins || []).concat([
buble({
transforms: {
dangerousForOf: true
}}),
commonjs(),
nodeResolve(),
replace({
Expand Down
Loading

0 comments on commit 7a972d4

Please sign in to comment.