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

update rollup config for newer version reqs #270

Merged
merged 1 commit into from
Mar 16, 2018
Merged
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
36 changes: 20 additions & 16 deletions generators/app/templates/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
});
Expand Down Expand Up @@ -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'
}

}))
Expand Down