Skip to content

Commit 44db0d4

Browse files
author
Pooya Parsa
committed
fix: wrong axios ordering in windows platform. (#56)
1 parent 55e0fbe commit 44db0d4

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

lib/module.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ module.exports = function (moduleOptions) {
2828
})
2929

3030
// Add plugin just after $axios
31-
const index = this.options.plugins.findIndex(p =>
32-
(p.src || p).includes('/axios.js')
33-
)
31+
const index = this.options.plugins.findIndex(p => /axios\.js$/.test(p.src || p))
3432
this.options.plugins.splice(index + 1, 0, join(this.options.buildDir, dst))
3533

3634
// Middleware

0 commit comments

Comments
 (0)