Skip to content

Commit 4ba5ee9

Browse files
authored
fix: replace all separators with / (#50)
1 parent a9d24d1 commit 4ba5ee9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

loaders/unit-test-loader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = function unitTestLoader(source, map) {
1111
const opts = this.getOptions();
1212
const testPathRelativeToAppPath = relative(opts.appPath, this.resourcePath);
1313
const ext = extname(testPathRelativeToAppPath);
14-
const loadPath = testPathRelativeToAppPath.replace(ext, "").replace(sep, '/'); // use forward slash always
14+
const loadPath = testPathRelativeToAppPath.replace(ext, "").split(sep).join('/'); // use forward slash always
1515

1616
if (loadPath) {
1717
const platformExt = loadPath.split('.').slice(-1)[0];

0 commit comments

Comments
 (0)