Skip to content

feat: accept extra esbuild compile options - #78

Merged
Kikobeats merged 2 commits into
masterfrom
feat/esbuild-options
Sep 10, 2026
Merged

Kikobeats merged 2 commits into
masterfrom
feat/esbuild-options

Conversation

@Kikobeats

Copy link
Copy Markdown
Owner

Summary

  • Forward an optional esbuild object from the factory or per call into the compile step.
  • Hosts can set external / define without baking package-specific rules into this repo.
  • Microlink API will use this to keep re2 out of Function bundles (vmOpts.esbuild).

Test plan

  • test/compile/build.js asserts define is applied
  • After publish, bump @browserless/function / the API and compile require('xml-urls')

Made with Cursor

Kikobeats and others added 2 commits September 10, 2026 17:00
Let the host merge define/external into the bundle step so
Microlink can keep re2 out of Function compiles.

Co-authored-by: Cursor <cursoragent@cursor.com>
Current pnpm treats `pnpm install <pkg>` as add and rejects that flag.

Co-authored-by: Cursor <cursoragent@cursor.com>
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 34506393320

Warning

No base build found for commit c76898b on master.
Coverage changes can't be calculated without a base build.
If a base build is processing, this comment will update automatically when it completes.

Coverage: 95.232%

Details

  • Patch coverage: 20 of 20 lines across 4 files are fully covered (100%).

Uncovered Changes

No uncovered changes found.

Coverage Regressions

Requires a base build to compare against. How to fix this →


Coverage Stats

Coverage Status
Relevant Lines: 715
Covered Lines: 686
Line Coverage: 95.94%
Relevant Branches: 124
Covered Branches: 113
Branch Coverage: 91.13%
Branches in Coverage %: Yes
Coverage Strength: 51.19 hits per line

💛 - Coveralls

@Kikobeats
Kikobeats merged commit 7f2df9b into master Sep 10, 2026
3 checks passed
@Kikobeats
Kikobeats deleted the feat/esbuild-options branch September 10, 2026 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants