babel / babel/minify

Basic configuration to minify and mangle produces completely broken JS

Open
#993 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.4k
Forks
217
PR merge metrics
No merged PRs in 30d

Description

## Bug Report

The following command...

node_modules\.bin\babel _display.js _plan_ab.js _plan_en.js _p_cover.js _reco_sl.js _tdata.js _tid_dec.js _v_mm.js _v_name.js --no-comments >..\lib\nlpbndl3.js

...using a config as follows (babel.config.json)

{
"presets": [["minify", {
"mangle": {
"exclude": ["MyCustomError"]
},
"keepFnName": false
}]]
}

Produces a single JS file that appears "right".

However, Chrome can't load the JS file and just hangs.

I know this bug report is incomplete (as I can't upload all of my code), but wondering if anyone else has experienced this issue.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.