Skip to content

Commit

Permalink
πŸ”’ start OrderedMap β„ΉοΈοΈπŸ”— docblock links πŸ“¦πŸˆπŸ—πŸ—οΈ
Browse files Browse the repository at this point in the history
πŸ›… built dist
πŸ— fn names for arity
πŸ—οΈ keywords file for later
  • Loading branch information
aretecode committed Jul 20, 2017
1 parent 699e6a6 commit 344bb6b
Show file tree
Hide file tree
Showing 6 changed files with 550 additions and 280 deletions.
12 changes: 9 additions & 3 deletions build/plugins/uglify.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ const {minify} = require('uglify-es')
// https://github.com/mishoo/UglifyJS2#minify-options-structure
// should mangle...
module.exports = options => {
const mangles = options.mangles === undefined ? true : options.mangles
let mangles = options.mangles === undefined ? true : options.mangles

// @TODO hard to keep it mangling top-level, so ugly with 1 letter fns
// mangles = false

const beautify = !!options.beautify

const uglifyOptions = {
Expand Down Expand Up @@ -49,10 +53,12 @@ module.exports = options => {

// @TODO:
// pure_funcs: true, side_effects: false,
keep_fargs: beautify,

// @NOTE we need this one for fp/arity
keep_fargs: true,

keep_fnames: beautify, // for now

// keep_fargs: false,
// keep_fnames: false, // for now
passes: 10,
},
Expand Down
Loading

0 comments on commit 344bb6b

Please sign in to comment.