From 49a7d0c7f82c2059adfd27b544ad19dd207318b4 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Sun, 30 Dec 2018 00:26:40 +0330 Subject: [PATCH] fix(rollup): temporary ignore rollup-plugin-license deprecated warns --- scripts/rollup.config.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/rollup.config.js b/scripts/rollup.config.js index c38c1c062e..b7a689810a 100644 --- a/scripts/rollup.config.js +++ b/scripts/rollup.config.js @@ -7,6 +7,7 @@ import replacePlugin from 'rollup-plugin-replace' import aliasPlugin from 'rollup-plugin-alias' import nodeResolvePlugin from 'rollup-plugin-node-resolve' import defaultsDeep from 'lodash/defaultsDeep' +import consola from 'consola' import { builtins } from './builtins' @@ -68,6 +69,12 @@ export default function rollupConfig({ `*/` ].join('\n') }) - ].concat(plugins) + ].concat(plugins), + onwarn(warning, warn) { + if (warning.plugin === 'rollup-plugin-license') { + return + } + consola.warn(warning) + } }) }