make enclose & wrap work with sourceMap (#3396)

fixes #3313
This commit is contained in:
Alex Lam S.L
2019-05-04 20:25:52 +08:00
committed by GitHub
parent 11cdab745d
commit 354fec8a9c
6 changed files with 43 additions and 34 deletions

View File

@@ -767,9 +767,6 @@ If you're using the `X-SourceMap` header instead, you can just omit `sourceMap.u
- `unused` (default: `true`) -- drop unreferenced functions and variables (simple
direct variable assignments do not count as references unless set to `"keep_assign"`)
- `warnings` (default: `false`) -- display warnings when dropping unreachable
code or unused declarations etc.
## Mangle options
- `eval` (default `false`) -- Pass `true` to mangle names visible in scopes