Skip to content

Commit fa6e833

Browse files
committed
build: update build script for rollup 1.0
1 parent e1fd222 commit fa6e833

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/build.main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function buildEntry ({ input, output }) {
3030
const isProd = /min\.js$/.test(output.file)
3131
return rollup.rollup(input)
3232
.then(bundle => bundle.generate(output))
33-
.then(({ code }) => {
33+
.then(({ output: [{ code }] }) => {
3434
if (isProd) {
3535
var minified = (output.banner ? output.banner + '\n' : '') + uglify.minify(code, {
3636
output: {

0 commit comments

Comments
 (0)