@@ -27,12 +27,12 @@ export function bundleApp(context?: BuildContext): Promise<any> {
27
27
context = generateContext ( context ) ;
28
28
fillConfigDefaults ( context , BUNDLE_APP_TASK_INFO ) ;
29
29
30
- if ( ! context . rollupAppConfig . dest ) {
31
- context . rollupAppConfig . dest = join ( context . buildDir , 'main.es6.js' ) ;
30
+ if ( ! context . rollupConfig . dest ) {
31
+ context . rollupConfig . dest = join ( context . buildDir , 'main.es6.js' ) ;
32
32
}
33
33
34
34
// bundle the app then create create css
35
- return rollup ( context . rollupAppConfig ) . then ( ( bundle : RollupBundle ) => {
35
+ return rollup ( context . rollupConfig ) . then ( ( bundle : RollupBundle ) => {
36
36
37
37
// set the module files used in this bundle
38
38
// this reference can be used elsewhere in the build (sass)
@@ -43,7 +43,7 @@ export function bundleApp(context?: BuildContext): Promise<any> {
43
43
setModulePathsCache ( context . moduleFiles ) ;
44
44
45
45
// write the bundle
46
- return bundle . write ( context . rollupAppConfig ) ;
46
+ return bundle . write ( context . rollupConfig ) ;
47
47
} ) ;
48
48
}
49
49
@@ -76,7 +76,9 @@ export function getModulePathsCache(): string[] {
76
76
function setModulePathsCache ( modulePaths : string [ ] ) {
77
77
// async save the module paths for later lookup
78
78
outputJson ( getCachePath ( ) , modulePaths , ( err ) => {
79
- Logger . error ( `Error writing module paths cache: ${ err } ` ) ;
79
+ if ( err ) {
80
+ Logger . error ( `Error writing module paths cache: ${ err } ` ) ;
81
+ }
80
82
} ) ;
81
83
}
82
84
@@ -91,10 +93,10 @@ function getCachePath(): string {
91
93
}
92
94
93
95
const BUNDLE_APP_TASK_INFO : TaskInfo = {
94
- contextProperty : 'rollupAppConfig ' ,
95
- fullArgOption : '--rollupApp ' ,
96
- shortArgOption : '-b ' ,
97
- defaultConfigFilename : 'rollup.app. config'
96
+ contextProperty : 'rollupConfig ' ,
97
+ fullArgOption : '--rollup ' ,
98
+ shortArgOption : '-r ' ,
99
+ defaultConfigFilename : 'rollup.config'
98
100
} ;
99
101
100
102
const BUNDLE_POLYFILL_TASK_INFO : TaskInfo = {
0 commit comments