File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ yarn add -D axe-core vue-axe
19
19
import Vue from ' vue'
20
20
21
21
if (process .env .NODE_ENV !== ' production' ) {
22
- const VueAxe = require (' vue-axe' )
22
+ const VueAxe = require (' vue-axe' ). default
23
23
Vue .use (VueAxe)
24
24
}
25
25
```
@@ -42,7 +42,7 @@ The `customResultHandler` config property expects a callback like the `axe.run()
42
42
import Vue from ' vue'
43
43
44
44
if (process .env .NODE_ENV !== ' production' ) {
45
- const VueAxe = require (' vue-axe' )
45
+ const VueAxe = require (' vue-axe' ). default
46
46
Vue .use (VueAxe, {
47
47
customResultHandler : (error , results ) => {
48
48
results .violations .forEach (violation => console .log (violation))
@@ -91,7 +91,7 @@ Create plugin file `plugins/axe.js`
91
91
import Vue from ' vue'
92
92
93
93
if (process .env .NODE_ENV !== ' production' ) {
94
- const VueAxe = require (' vue-axe' )
94
+ const VueAxe = require (' vue-axe' ). default
95
95
Vue .use (VueAxe)
96
96
}
97
97
You can’t perform that action at this time.
0 commit comments