-
Notifications
You must be signed in to change notification settings - Fork 5.7k
fix: resolve #12960 — Allow configuring "build.packages: external" on a per-function level #13482
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 | ||
|---|---|---|---|---|
| @@ -0,0 +1,13 @@ | ||||
| build: { | ||||
| type: 'object', | ||||
| properties: { | ||||
| esbuild: { | ||||
| type: 'object', | ||||
| properties: { | ||||
| packages: { type: 'string', enum: ['external'] }, | ||||
| }, | ||||
| additionalProperties: false, | ||||
| }, | ||||
| }, | ||||
| additionalProperties: false, | ||||
|
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. Critical: Setting For example, the esbuild plugin itself uses Remove 🔓 Proposed fix: Remove the restrictive constraint- additionalProperties: false,📝 Committable suggestion
Suggested change
🧰 Tools🪛 Biome (2.4.10)[error] 11-12: Expected a statement but instead found ', (parse) 🤖 Prompt for AI Agents |
||||
| }, | ||||
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.
🧩 Analysis chain
🌐 Web query:
What are the valid values for esbuild's "packages" configuration option?💡 Result:
The valid values for esbuild's "packages" configuration option are 'bundle' and 'external'.
Citations:
--packages=bundleevanw/esbuild#3824Expand
packagesenum to include valid esbuild configuration values.The
packagesproperty is restricted to['external'], but esbuild's packages option supports both'bundle'and'external'. This prevents users from explicitly configuring bundling behavior. Update the enum to include all valid values:Fix
🧰 Tools
🪛 Biome (2.4.10)
[error] 7-7: Expected an expression but instead found 'enum'.
(parse)
[error] 7-7: Expected a statement but instead found ','.
(parse)
🤖 Prompt for AI Agents