Skip to content

Commit e4c06ab

Browse files
author
yihang.lyh
committed
fix internal lib loader path normalize
1 parent 39978d8 commit e4c06ab

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/normalize.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,15 @@ var fs = require('fs')
33
var path = require('path')
44

55
exports.lib = function (file) {
6-
if (IS_TEST) {
7-
return path.resolve(__dirname, file)
8-
} else {
9-
return 'vue-loader/lib/' + file
10-
}
6+
return path.resolve(__dirname, file)
117
}
128

139
exports.dep = function (dep) {
1410
if (IS_TEST) {
1511
return dep
1612
} else if (fs.existsSync(path.resolve(__dirname, '../node_modules', dep))) {
1713
// npm 2 or npm linked
18-
return 'vue-loader/node_modules/' + dep
14+
return path.resolve(__dirname, '../node_modules', dep)
1915
} else {
2016
// npm 3
2117
return dep

0 commit comments

Comments
 (0)