Skip to content

Commit 5eb5225

Browse files
[ES5] ES6 preset is not installed
1 parent 87e4b68 commit 5eb5225

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
module.exports = function() {
44
return {
55
visitor: {
6-
Program(path) {
7-
// On program start, do an explicit traversal up front for your plugin.
6+
Program: function(path) {
7+
// On program start, do an explicit traversal up front for this plugin.
88
path.traverse({
99
JSXIdentifier: function(path) {
1010
if (path.node.name === 'data-test') {
1111
path.parentPath.remove();
1212
}
1313
},
14-
});
14+
});
1515
}
1616
},
1717
};

0 commit comments

Comments
 (0)