Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow loading modules from any local path #154

Merged
merged 1 commit into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/sb_workers/user_workers.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class UserWorker {
envVars: [],
forceCreate: false,
netAccessDisabled: false,
customModuleRoot: null,
customModuleRoot: '',
...opts,
};

Expand Down
2 changes: 0 additions & 2 deletions examples/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ serve(async (req: Request) => {
const memoryLimitMb = 150;
const workerTimeoutMs = 5 * 60 * 1000;
const noModuleCache = false;
const customModuleRoot = null;
// you can provide an import map inline
// const inlineImportMap = {
// imports: {
Expand All @@ -55,7 +54,6 @@ serve(async (req: Request) => {
importMapPath,
envVars,
forceCreate,
customModuleRoot,
netAccessDisabled,
});
};
Expand Down