Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Treeshake functions properly (#2418)
- Loading branch information
1 parent
cc33b97
commit e653e66
Showing
4 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
...es/core/integration-tests/test/integration/scope-hoisting/es6/tree-shaking-functions/a.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import {add} from './b'; | ||
export default add(4, 5); |
7 changes: 7 additions & 0 deletions
7
...es/core/integration-tests/test/integration/scope-hoisting/es6/tree-shaking-functions/b.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export function add(a, b) { | ||
return a + b; | ||
} | ||
|
||
export function sub(a, b) { | ||
return a - b; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters