This repository has been archived by the owner on Nov 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use "/@fs/" url for default entry path
- Loading branch information
Showing
4 changed files
with
29 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
{ | ||
"name": "remix-vite-pnpm-monorepo" | ||
"name": "remix-vite-pnpm-monorepo", | ||
"pnpm": { | ||
"patchedDependencies": { | ||
"@remix-run/dev@0.0.0-nightly-3874120-20231103": "patches/@remix-run__dev@0.0.0-nightly-3874120-20231103.patch" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,4 +31,4 @@ | |
"engines": { | ||
"node": ">=18.0.0" | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
patches/@remix-run__dev@0.0.0-nightly-3874120-20231103.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/dist/vite/plugin.js b/dist/vite/plugin.js | ||
index 268c8853fbb12f022bc43f5da3d6d07d9c778ea7..6de56d722afa26fc7e1a04e6b9519acb51b2f669 100644 | ||
--- a/dist/vite/plugin.js | ||
+++ b/dist/vite/plugin.js | ||
@@ -70,6 +70,9 @@ const normalizePath = p => { | ||
const resolveFileUrl = ({ | ||
rootDirectory | ||
}, filePath) => { | ||
+ if (filePath.includes("/node_modules/")) { | ||
+ return `/@fs` + filePath; | ||
+ } | ||
let relativePath = path__namespace.relative(rootDirectory, filePath); | ||
if (relativePath.startsWith("..") || path__namespace.isAbsolute(relativePath)) { | ||
throw new Error(`Cannot resolve asset path "${filePath}" outside of root directory "${rootDirectory}".`); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.