Skip to content

Commit

Permalink
Hide rollup warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dioslaska committed Aug 22, 2017
1 parent 1c6ba1f commit 0149520
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion grunt/rollup.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ var globals = {
'rxjs/Observable': 'Rx'
};

var external = ['angular',
var external = [
'angular',
'jquery',
'knockout',
'prop-types',
'react',
'react-dom',
'@angular/core',
Expand All @@ -39,6 +41,11 @@ module.exports = {
moduleName: 'mobiscroll',
format: 'umd',
context: 'this',
onwarn(warning) {
if (warning.code === 'UNUSED_EXTERNAL_IMPORT') {
return;
}
},
plugins: [
babel({
plugins: ['external-helpers']
Expand All @@ -61,6 +68,11 @@ module.exports = {
moduleName: 'mobiscroll',
format: 'umd',
context: 'this',
onwarn(warning) {
if (warning.code === 'UNUSED_EXTERNAL_IMPORT') {
return;
}
},
plugins: [
babel({
plugins: ['external-helpers']
Expand Down

0 comments on commit 0149520

Please sign in to comment.