From 49bd34b7e9b5a13f91566c65c08aaf608bad62de Mon Sep 17 00:00:00 2001 From: juanelas Date: Wed, 8 Apr 2020 11:37:02 +0200 Subject: [PATCH] more clear config --- build/rollup.config.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/build/rollup.config.js b/build/rollup.config.js index df23f2d..3d22645 100644 --- a/build/rollup.config.js +++ b/build/rollup.config.js @@ -12,7 +12,6 @@ const srcDir = path.join(rootDir, pkgJson.directories.src) const dstDir = path.join(rootDir, pkgJson.directories.lib) function camelise (str) { - console.log('camelise', str) return str.replace(/-([a-z])/g, function (m, w) { return w.toUpperCase() @@ -48,17 +47,16 @@ module.exports = [ }), resolve({ browser: true - // ignore: ['index.browser.mod.js'] }), terser({ - exclude: ['index.browser.mod.js'] + exclude: [path.basename(pkgJson.browser)] }) ] }, { // Node input: input, output: { - file: path.join(dstDir, 'index.node.js'), + file: path.join(rootDir, pkgJson.main), format: 'cjs' }, plugins: [