Skip to content

Commit

Permalink
Try modified test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Aug 11, 2022
1 parent 4ab4a86 commit 943f278
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Chunk.ts
Expand Up @@ -464,7 +464,9 @@ export default class Chunk {
});
const currentPath = `${currentDir}/${fileName}`;
const { preserveModulesRoot } = options;
if (preserveModulesRoot && resolve(currentPath).startsWith(preserveModulesRoot)) {
// TODO revert
// if (preserveModulesRoot && resolve(currentPath).startsWith(preserveModulesRoot)) {
if (preserveModulesRoot && currentPath.startsWith(preserveModulesRoot)) {
path = currentPath.slice(preserveModulesRoot.length).replace(/^[\\/]/, '');
} else {
path = relative(preserveModulesRelativeDir, currentPath);
Expand Down

0 comments on commit 943f278

Please sign in to comment.