@embroider/shared-internals
Advanced tools
Comparing version
{ | ||
"name": "@embroider/shared-internals", | ||
"version": "0.39.1", | ||
"version": "0.40.0", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Utilities shared among the other embroider packages", |
@@ -10,2 +10,4 @@ import type { Node } from 'broccoli-node-api'; | ||
version: string; | ||
dependencies: Record<string, string>; | ||
devDependencies: Record<string, string>; | ||
}; | ||
@@ -12,0 +14,0 @@ root: string; |
@@ -13,3 +13,3 @@ "use strict"; | ||
let result = path_1.join(path_1.relative(fromDir, path_1.dirname(toFile)), path_1.basename(toFile)); | ||
if (!result.startsWith('/') && !result.startsWith('.')) { | ||
if (!path_1.isAbsolute(result) && !result.startsWith('.')) { | ||
result = './' + result; | ||
@@ -24,2 +24,10 @@ } | ||
} | ||
// windows supports both "./" and ".\", but webpack 5 insists on "./" | ||
if (result.startsWith('.\\')) { | ||
return './' + result.slice(2); | ||
} | ||
// windows supports both "../" and "..\", but webpack 5 insists on "../" | ||
if (result.startsWith('..\\')) { | ||
return '../' + result.slice(3); | ||
} | ||
return result; | ||
@@ -26,0 +34,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
43525
1.51%694
1.46%