File tree 3 files changed +23
-22
lines changed
3 files changed +23
-22
lines changed Original file line number Diff line number Diff line change @@ -42,22 +42,23 @@ function build (builds) {
42
42
43
43
function buildEntry ( config ) {
44
44
const isProd = / m i n \. j s $ / . test ( config . dest )
45
- return rollup . rollup ( config ) . then ( bundle => {
46
- const code = bundle . generate ( config ) . code
47
- if ( isProd ) {
48
- var minified = ( config . banner ? config . banner + '\n' : '' ) + uglify . minify ( code , {
49
- output : {
50
- ascii_only : true
51
- } ,
52
- compress : {
53
- pure_funcs : [ 'makeMap' ]
54
- }
55
- } ) . code
56
- return write ( config . dest , minified , true )
57
- } else {
58
- return write ( config . dest , code )
59
- }
60
- } )
45
+ return rollup . rollup ( config )
46
+ . then ( bundle => bundle . generate ( config ) )
47
+ . then ( ( { code } ) => {
48
+ if ( isProd ) {
49
+ var minified = ( config . banner ? config . banner + '\n' : '' ) + uglify . minify ( code , {
50
+ output : {
51
+ ascii_only : true
52
+ } ,
53
+ compress : {
54
+ pure_funcs : [ 'makeMap' ]
55
+ }
56
+ } ) . code
57
+ return write ( config . dest , minified , true )
58
+ } else {
59
+ return write ( config . dest , code )
60
+ }
61
+ } )
61
62
}
62
63
63
64
function write ( dest , code , zip ) {
Original file line number Diff line number Diff line change 106
106
"nightwatch-helpers" : " ^1.2.0" ,
107
107
"phantomjs-prebuilt" : " ^2.1.14" ,
108
108
"resolve" : " ^1.3.3" ,
109
- "rollup" : " ^0.43.0 " ,
109
+ "rollup" : " ^0.45.1 " ,
110
110
"rollup-plugin-alias" : " ^1.3.1" ,
111
111
"rollup-plugin-babel" : " ^2.7.1" ,
112
112
"rollup-plugin-buble" : " ^0.15.0" ,
Original file line number Diff line number Diff line change @@ -4714,9 +4714,9 @@ rollup-watch@^4.0.0:
4714
4714
chokidar "^1.7.0"
4715
4715
require-relative "0.8.7"
4716
4716
4717
- rollup@^0.43.0 :
4718
- version "0.43.0 "
4719
- resolved "https://registry.yarnpkg.com/rollup/-/rollup-0.43.0 .tgz#b36bdb75fa5e0823b6de8aee18ff7b5655520543 "
4717
+ rollup@^0.45.1 :
4718
+ version "0.45.1 "
4719
+ resolved "https://registry.yarnpkg.com/rollup/-/rollup-0.45.1 .tgz#af67ded79974079095b5fede8817b4ec26d610e1 "
4720
4720
dependencies :
4721
4721
source-map-support "^0.4.0"
4722
4722
@@ -4816,15 +4816,15 @@ shebang-regex@^1.0.0:
4816
4816
version "1.0.0"
4817
4817
resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3"
4818
4818
4819
- [email protected] , shelljs@^0.7.5 :
4819
+
4820
4820
version "0.7.6"
4821
4821
resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.6.tgz#379cccfb56b91c8601e4793356eb5382924de9ad"
4822
4822
dependencies :
4823
4823
glob "^7.0.0"
4824
4824
interpret "^1.0.0"
4825
4825
rechoir "^0.6.2"
4826
4826
4827
- shelljs@^0.7.8 :
4827
+ shelljs@^0.7.5, shelljs@^0.7. 8 :
4828
4828
version "0.7.8"
4829
4829
resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.8.tgz#decbcf874b0d1e5fb72e14b164a9683048e9acb3"
4830
4830
dependencies :
You can’t perform that action at this time.
0 commit comments