-
Notifications
You must be signed in to change notification settings - Fork 178
fix(toolchain): mark external deps #2713
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -36,6 +36,8 @@ const nodeCompatModules = [ | |||||
| //"url", | ||||||
| //"util/types", | ||||||
| //"zlib", | ||||||
| "fs", | ||||||
| "fs/promises", | ||||||
| ]; | ||||||
|
|
||||||
| // Modules implemented via a mix of workerd APIs and polyfills. | ||||||
|
|
@@ -48,6 +50,9 @@ const hybridNodeCompatModules = [ | |||||
| "util", | ||||||
| ]; | ||||||
|
|
||||||
| const externalModules = nodeCompatModules.flatMap((p) => [p, `node:${p}`]) | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Also note that the property name appears to have a typo - Spotted by Diamond |
||||||
| console.log('modules', externalModules); | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This debug Spotted by Diamond |
||||||
|
|
||||||
| export const rivetPreset: Preset = { | ||||||
| meta: { | ||||||
| name: "unenv:rivet", | ||||||
|
|
@@ -86,5 +91,5 @@ export const rivetPreset: Preset = { | |||||
| //process: "@cloudflare/unenv-preset/runtime/node/process/index", | ||||||
| }, | ||||||
| polyfill: [], | ||||||
| external: nodeCompatModules.flatMap((p) => [p, `node:${p}`]), | ||||||
| externa: nodeCompatModules.flatMap((p) => [p, `node:${p}`]), | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There appears to be a typo in the property name:
Suggested change
Spotted by Diamond |
||||||
| }; | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This debug
console.log('foo')statement should be removed before merging. It appears to be unintentional debugging code that made its way into the PR.Spotted by Diamond
Is this helpful? React 👍 or 👎 to let us know.