We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87e4b68 commit 5eb5225Copy full SHA for 5eb5225
1 file changed
src/index.js
@@ -3,15 +3,15 @@
3
module.exports = function() {
4
return {
5
visitor: {
6
- Program(path) {
7
- // On program start, do an explicit traversal up front for your plugin.
+ Program: function(path) {
+ // On program start, do an explicit traversal up front for this plugin.
8
path.traverse({
9
JSXIdentifier: function(path) {
10
if (path.node.name === 'data-test') {
11
path.parentPath.remove();
12
}
13
},
14
- });
+ });
15
16
17
};
0 commit comments