Skip to content

Commit

Permalink
revert: the previous terser fix and update to a new version (#14)
Browse files Browse the repository at this point in the history
Fixes #12
  • Loading branch information
brandonocasey committed Jan 8, 2019
1 parent 79310bd commit 8db61e6
Show file tree
Hide file tree
Showing 3 changed files with 1,330 additions and 1,134 deletions.
9 changes: 1 addition & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const resolve = require('rollup-plugin-node-resolve');
const {terser} = require('rollup-plugin-terser');
const istanbul = require('rollup-plugin-istanbul');
const path = require('path');
const isCi = require('is-ci');

const transformObjectAssign = require('@babel/plugin-transform-object-assign');
const presetEnv = require('@babel/preset-env');
Expand Down Expand Up @@ -184,20 +183,14 @@ const getSettings = function(options) {
settings.excludeCoverage = options.excludeCoverage(settings.excludeCoverage);
}

const terserOptions = {output: {comments: 'some'}};

if (isCi) {
terserOptions.numWorkers = 1;
}

// primed plugins
settings.primedPlugins = {
babel: babel(settings.babel),
commonjs: commonjs({sourceMap: false}),
json: json(),
multiEntry: multiEntry({exports: false}),
resolve: resolve({browser: true, main: true, jsnext: true}),
uglify: terser(terserOptions),
uglify: terser({output: {comments: 'some'}}),
istanbul: istanbul({exclude: settings.excludeCoverage})
};

Expand Down
Loading

0 comments on commit 8db61e6

Please sign in to comment.