Skip to content

Commit

Permalink
fix minifier args
Browse files Browse the repository at this point in the history
  • Loading branch information
balazs-lengyel committed May 27, 2022
1 parent fa5725f commit 1bfb013
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions packages/transformers/elm/src/ElmTransformer.js
Expand Up @@ -146,22 +146,17 @@ async function minifyElmOutput(source) {
// Recommended minification
// Based on: http://elm-lang.org/0.19.0/optimize
let result = await minify(source, {
minify: true,
jsc: {
minify: {
compress: {
keep_fargs: false,
passes: 2,
pure_funcs: elmPureFuncs,
pure_getters: true,
unsafe: true,
unsafe_comps: true,
},
mangle: {
reserved: elmPureFuncs,
}
}
}
compress: {
keep_fargs: false,
passes: 2,
pure_funcs: elmPureFuncs,
pure_getters: true,
unsafe: true,
unsafe_comps: true,
},
mangle: {
reserved: elmPureFuncs,
},
});

if (result.code != null) return result.code;
Expand Down

0 comments on commit 1bfb013

Please sign in to comment.