From a50b231cbcf6ec10fbbf456dbc8b2c84fdac2eb8 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Thu, 4 Mar 2021 16:26:27 +0100 Subject: [PATCH] style: fix --- rollup.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index 8a85437d..aa14e7fe 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -5,6 +5,7 @@ import resolve from '@rollup/plugin-node-resolve' import commonjs from '@rollup/plugin-commonjs' import pascalcase from 'pascalcase' +// eslint-disable-next-line const pkg = require('./package.json') const name = pkg.name @@ -70,7 +71,7 @@ export default packageConfigs function createConfig(format, output, plugins = []) { if (!output) { - console.log(require('chalk').yellow(`invalid format: "${format}"`)) + console.warn(`invalid format: "${format}"`) process.exit(1) } @@ -185,6 +186,7 @@ function createProductionConfig(format) { } function createMinifiedConfig(format) { + // eslint-disable-next-line const { terser } = require('rollup-plugin-terser') return createConfig( format, -- 2.47.3