We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed3a2fc commit af2052cCopy full SHA for af2052c
index.js
@@ -10,7 +10,10 @@
10
*/
11
'use strict';
12
13
-module.exports = function (babel) {
+var declare = require('@babel/helper-plugin-utils').declare;
14
+
15
+module.exports = declare(function (api, options, dirname) {
16
+ api.assertVersion(7);
17
return {
18
visitor: {
19
AssignmentExpression: {
@@ -51,7 +54,7 @@ module.exports = function (babel) {
51
54
}
52
55
53
56
};
-};
57
+});
58
59
function replaceAssertIfMatch (node) {
60
var target;
package.json
@@ -10,6 +10,7 @@
"bugs": "https://github.com/power-assert-js/babel-plugin-empower-assert/issues",
"devDependencies": {
"@babel/core": "^7.0.0",
+ "@babel/helper-plugin-utils": "^7.0.0",
"mocha": "^5.0.0",
"xtend": "^4.0.1"
},
0 commit comments