Skip to content

Commit 77e202f

Browse files
authored
fix: revert change of file location (#8627)
1 parent 6d90fb8 commit 77e202f

File tree

1 file changed

+1
-1
lines changed
  • packages/sandpack-core/src/npm/dynamic/fetch-protocols

1 file changed

+1
-1
lines changed

packages/sandpack-core/src/npm/dynamic/fetch-protocols/file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class FileFetcher implements FetchProtocol {
1717
private async getUrlFromFileProtocol(version: string) {
1818
const tarLocation = normalizePath(version.replace(/^file:/, ''));
1919

20-
const module = this.manager.transpiledModules[tarLocation];
20+
const module = this.manager.transpiledModules['/' + tarLocation];
2121

2222
if (!module) {
2323
throw new Error(`Could not find ${version} while resolving dependency`);

0 commit comments

Comments
 (0)