Skip to content

Conversation

@timokoessler
Copy link
Member

@timokoessler timokoessler commented Sep 30, 2025

Todos

  • Add an agent mode during bundling that e.g. does not report to API
  • Fix SCA reporting of dependencies
  • Support bundlers
    • Esbuild
    • Rolldown
    • Vite (e.g. Nuxt, Astro, Remix ...)
    • Webpack (e.g. old Next.js)
    • Rollup
    • ...
  • Sourcemaps?

Modes

Output format: Either CJS or ESM. For CJS we can also include Zen in the bundle, but not for ESM, as we need to preload it using --require.

Packages: External or not. If external, we can copy Zen to the output dir to make it easier for the dev to integrate.

Questions

  • Do we want to inline wasm? Only an advantage for CJS (non external packages) output, as lib still needed for ESM.
  • Check version agent that was used to bundle, check on runtime if the same version (otherwise error?)
  • Do not start the agent in bundling mode?

@timokoessler timokoessler changed the base branch from main to new-instrumentation September 30, 2025 09:29
@codecov
Copy link

codecov bot commented Sep 30, 2025

Codecov Report

❌ Patch coverage is 72.97297% with 20 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
library/agent/Agent.ts 71.42% 10 Missing ⚠️
library/agent/protect.ts 37.50% 10 Missing ⚠️

📢 Thoughts on this report? Let us know!

Base automatically changed from new-instrumentation to main November 7, 2025 13:10
@timokoessler timokoessler changed the base branch from main to new-build-process November 13, 2025 13:56
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