Skip to content

Commit

Permalink
Simplify rollup config a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Aug 4, 2019
1 parent eeed0fc commit 451ed34
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions rollup.config.js
Expand Up @@ -3,7 +3,11 @@ const pathModule = require('path');

const plugins = [
/* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
require('rollup-plugin-commonjs')(),
require('rollup-plugin-commonjs')({
// leave the os require in the tree as that codepath is not
// taken when executed in Deno after magicpen porting work
ignore: process.env.DENO_BUILD ? ['os'] : undefined
}),
require('rollup-plugin-node-resolve')(),
require('rollup-plugin-node-globals')(),
require('rollup-plugin-terser').terser({
Expand All @@ -15,14 +19,6 @@ const plugins = [
})
];

if (process.env.DENO_BUILD) {
// leave the os require in the tree as that codepath is not
// taken when executed in Deno after magicpen porting work
plugins[0] = require('rollup-plugin-commonjs')({
ignore: ['os']
})
}

module.exports = {
output: {
banner:
Expand Down

0 comments on commit 451ed34

Please sign in to comment.