fix export of parameters when renaming the binding of exported functions - fixes #2753
This commit is contained in:
9
packages/babel-core/test/fixtures/transformation/spec.function-name/modules-4/actual.js
vendored
Normal file
9
packages/babel-core/test/fixtures/transformation/spec.function-name/modules-4/actual.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
export function foo(bar) {
|
||||
|
||||
}
|
||||
|
||||
var bar = {
|
||||
foo: function () {
|
||||
foo;
|
||||
}
|
||||
};
|
||||
8
packages/babel-core/test/fixtures/transformation/spec.function-name/modules-4/expected.js
vendored
Normal file
8
packages/babel-core/test/fixtures/transformation/spec.function-name/modules-4/expected.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
export { _foo as foo };
|
||||
function _foo(bar) {}
|
||||
|
||||
var bar = {
|
||||
foo: function foo() {
|
||||
_foo;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user