Skip to content

Commit 81cc2ce

Browse files
authoredAug 5, 2016
chore: remove forms, http and rxjs from UMD bundle (ng-bootstrap#549)
1 parent 1266e04 commit 81cc2ce

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed
 

‎gulpfile.js

+13-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,19 @@ gulp.task('umd', function(cb) {
7474
entry: './dist/index.js',
7575
output: {filename: 'dist/bundles/ng-bootstrap.js', library: 'ngb', libraryTarget: 'umd'},
7676
devtool: 'source-map',
77-
externals: {'@angular/core': ngExternal('core'), '@angular/common': ngExternal('common')}
77+
externals: {
78+
'@angular/core': ngExternal('core'),
79+
'@angular/common': ngExternal('common'),
80+
'@angular/forms': ngExternal('forms'),
81+
'rxjs/Rx': {root: 'Rx', commonjs: 'rxjs/Rx', commonjs2: 'rxjs/Rx', amd: 'rxjs/Rx'},
82+
// 'rxjs/add/operator/let': 'rxjs/add/operator/let'
83+
'rxjs/add/operator/let': {
84+
root: ['Rx', 'Observable', 'prototype'],
85+
commonjs: 'rxjs/add/operator/let',
86+
commonjs2: 'rxjs/add/operator/let',
87+
amd: 'rxjs/add/operator/let'
88+
}
89+
}
7890
},
7991
webpackCallBack('webpack', cb));
8092
});

0 commit comments

Comments
 (0)
Please sign in to comment.