Skip to content

Commit

Permalink
fix: remove unecessary windows path normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Apr 16, 2021
1 parent db84f91 commit 6d1a4f5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/translator-default/src/util/add-dependencies.js
Expand Up @@ -150,11 +150,7 @@ export default (entryFile, isHydrate) => {
if (file !== entryFile) {
resolved = resolveRelativePath(
entryFile,
path.join(
file.opts.sourceFileName,
"..",
path.sep === "/" ? req : req.replace(/\//g, path.sep)
)
path.join(file.opts.sourceFileName, "..", req)
);
}

Expand Down

0 comments on commit 6d1a4f5

Please sign in to comment.