Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade rollup #685

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions bin/build-compare.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ var os = require('os')
var path = require('path')
var glob = require('glob')
var rollup = require('rollup')
var commonjs = require('rollup-plugin-commonjs')
var nodeResolve = require('rollup-plugin-node-resolve')
var json = require('rollup-plugin-json')
var buble = require('rollup-plugin-buble')
var commonjs = require('@rollup/plugin-commonjs')
var nodeResolve = require('@rollup/plugin-node-resolve')
var json = require('@rollup/plugin-json')
var buble = require('@rollup/plugin-buble')
var removeCheck = require('../rollup/plugins/remove-check')
var ncp = require('ncp')
var mkdirp = require('mkdirp')
Expand Down Expand Up @@ -90,20 +90,20 @@ function handleCase (name, www, root, onComplete) {
var minPath = path.join(TMP_DIR, name + '.bundle.min.js')

rollup.rollup({
input: sourcePath
input: sourcePath,
plugins: [
nodeResolve(),
json(),
commonjs(),
removeCheck(),
buble()
]
}).then(function (bundle) {
console.log(`writing to ${bundlePath}`)
return bundle.write({
format: 'iife',
moduleName: 'bundle',
file: bundlePath,
plugins: [
nodeResolve(),
json(),
commonjs(),
removeCheck(),
buble()
]
name: 'bundle',
file: bundlePath
})
}).then(function () {
var closureCompiler = new ClosureCompiler({
Expand Down
Loading
Loading