diff --git a/generators/app/templates/gulpfile.js b/generators/app/templates/gulpfile.js index aeb5add..083c2ae 100644 --- a/generators/app/templates/gulpfile.js +++ b/generators/app/templates/gulpfile.js @@ -81,9 +81,11 @@ gulp.task('rollup:fesm', function () { '@angular/common' ], - // Format of generated bundle - // See "format" in https://rollupjs.org/#core-functionality - format: 'es' + output: { + // Format of generated bundle + // See "format" in https://rollupjs.org/#core-functionality + format: 'es' + } })) .pipe(gulp.dest(distFolder)); }); @@ -114,22 +116,24 @@ gulp.task('rollup:umd', function () { '@angular/common' ], - // Format of generated bundle - // See "format" in https://rollupjs.org/#core-functionality - format: 'umd', + output: { + // The name to use for the module for UMD/IIFE bundles + // (required for bundles with exports) + // See "name" in https://rollupjs.org/#core-functionality + name: '<%= props.libraryName.original %>', - // Export mode to use - // See "exports" in https://rollupjs.org/#danger-zone - exports: 'named', + // See "globals" in https://rollupjs.org/#core-functionality + globals: { + typescript: 'ts' + }, - // The name to use for the module for UMD/IIFE bundles - // (required for bundles with exports) - // See "name" in https://rollupjs.org/#core-functionality - name: '<%= props.libraryName.original %>', + // Format of generated bundle + // See "format" in https://rollupjs.org/#core-functionality + format: 'umd', - // See "globals" in https://rollupjs.org/#core-functionality - globals: { - typescript: 'ts' + // Export mode to use + // See "exports" in https://rollupjs.org/#danger-zone + exports: 'named' } }))