Skip to content

Commit

Permalink
chore: supress the 'circular dependency' rollup noise
Browse files Browse the repository at this point in the history
  • Loading branch information
limonte committed Feb 21, 2020
1 parent cf39a9c commit f72441c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const merge = require('merge2')
const sass = require('sass')
const browserSync = require('browser-sync').create()
const packageJson = require('./package.json')
const execute = require('@sweetalert2/execute')
const log = require('fancy-log')
const fs = require('fs')
const version = process.env.VERSION || packageJson.version
Expand Down Expand Up @@ -71,7 +70,13 @@ gulp.task('build:scripts', () => {
if (typeof this !== 'undefined' && this.Sweetalert2){\
this.swal = this.sweetAlert = this.Swal = this.SweetAlert = this.Sweetalert2\
}`
}
},
// https://github.com/rollup/rollup/issues/2271
onwarn (warning, rollupWarn) {
if (warning.code !== 'CIRCULAR_DEPENDENCY') {
rollupWarn(warning)
}
},
}))
.on('error', (error) => {
if (continueOnError) {
Expand Down

0 comments on commit f72441c

Please sign in to comment.