1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
Description: fix rollup config to avoid useless dependencies
Author: Xavier Guimard <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2020-12-13
--- a/rollup.conf.js
+++ b/rollup.conf.js
@@ -2,13 +2,8 @@
import common from 'rollup-plugin-commonjs';
import resolve from 'rollup-plugin-node-resolve';
import transform from 'rollup-plugin-buble';
-import nyc from 'nyc';
-const Instrumenter = (new (new nyc)._instrumenterLib.istanbul).createInstrumenter; // eslint-disable-line
const env = process.env.NODE_ENV || 'test'; // eslint-disable-line no-process-env
const plugins = [ common(), resolve(), transform() ];
-if (env === 'test') {
- plugins.unshift(coverage({ exclude: 'test/*.js', instrumenter: { Instrumenter } }));
-}
export default {
input: env === 'test' ? 'test/index.js' : 'index.js',
output: {
|