remove es20xx prefixes from plugins and rename folders (#6575)
This commit is contained in:
19
packages/babel-plugin-transform-function-name/test/fixtures/function-name/export/actual.js
vendored
Normal file
19
packages/babel-plugin-transform-function-name/test/fixtures/function-name/export/actual.js
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
export var foo = "yes", foob = "no";
|
||||
|
||||
export function whatever() {}
|
||||
|
||||
export default function wowzers() {}
|
||||
|
||||
var bar = {
|
||||
foo: function () {
|
||||
foo;
|
||||
},
|
||||
|
||||
whatever: function () {
|
||||
whatever;
|
||||
},
|
||||
|
||||
wowzers: function () {
|
||||
wowzers;
|
||||
}
|
||||
};
|
||||
21
packages/babel-plugin-transform-function-name/test/fixtures/function-name/export/expected.js
vendored
Normal file
21
packages/babel-plugin-transform-function-name/test/fixtures/function-name/export/expected.js
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
export { _whatever as whatever };
|
||||
export { _wowzers as default };
|
||||
var _foo = "yes",
|
||||
foob = "no";
|
||||
export { _foo as foo, foob };
|
||||
|
||||
function _whatever() {}
|
||||
|
||||
function _wowzers() {}
|
||||
|
||||
var bar = {
|
||||
foo: function foo() {
|
||||
_foo;
|
||||
},
|
||||
whatever: function whatever() {
|
||||
_whatever;
|
||||
},
|
||||
wowzers: function wowzers() {
|
||||
_wowzers;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user