Skip to content

Fix mangling of Named Exports in Modules - #518

Merged
boopathi merged 1 commit into
masterfrom
export-named-1
May 5, 2017
Merged

boopathi merged 1 commit into
masterfrom
export-named-1

Conversation

@boopathi

@boopathi boopathi commented May 4, 2017

Copy link
Copy Markdown
Member

This completes one part of the problem where now Named exports are no
more mangled. But the other part, where we can convert

const foo = bar;
export {foo};

to

export const foo = bar;

is yet to be explored in DCE or other plugins.

+ Ref #479

This completes one part of the problem where now Named exports are no
more mangled. But the other part, where we can convert

```js
const foo = bar;
export {foo};
```

to

```js
export const foo = bar;
```

is yet to be explored in DCE or other plugins.
@codecov

codecov Bot commented May 4, 2017 •

Copy link
Copy Markdown

Codecov Report

Merging #518 into master will increase coverage by 0.14%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #518      +/-   ##
==========================================
+ Coverage   82.96%   83.11%   +0.14%     
==========================================
  Files          34       34              
  Lines        2524     2570      +46     
  Branches      897      922      +25     
==========================================
+ Hits         2094     2136      +42     
- Misses        257      258       +1     
- Partials      173      176       +3
Impacted Files Coverage Δ
...ages/babel-plugin-minify-mangle-names/src/index.js 77.64% <100%> (+1.1%) ⬆️
packages/babel-plugin-minify-simplify/src/index.js 80.9% <0%> (+0.4%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 713fb8f...37878a5. Read the comment docs.

@boopathi boopathi added the Tag: Bug Fix Pull Request fixes a bug label May 4, 2017
@boopathi
boopathi merged commit 7f03281 into master May 5, 2017
@boopathi
boopathi deleted the export-named-1 branch May 5, 2017 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Tag: Bug Fix Pull Request fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants