Skip to content

fix: disable source map generation for published packages#1827

Open
Br1an67 wants to merge 1 commit into
bytedance:mainfrom
Br1an67:fix/issue-829-disable-sourcemap
Open

fix: disable source map generation for published packages#1827
Br1an67 wants to merge 1 commit into
bytedance:mainfrom
Br1an67:fix/issue-829-disable-sourcemap

Conversation

@Br1an67
Copy link
Copy Markdown
Contributor

@Br1an67 Br1an67 commented Mar 1, 2026

Summary

Closes #829

Source maps (.map files) were being included in published npm packages, significantly inflating package sizes (some vendor map files were 3-5MB each as shown in the issue).

This PR disables source map generation for packages that are published to npm:

  • @tarko/agent-serverrslib.config.ts: sourceMap: false
  • @agent-tars/corerslib.config.ts: sourceMap: false
  • @agent-tars/interfacerslib.config.ts: sourceMap: false
  • @tarko/agent-uirsbuild.config.ts: sourceMap: false (web UI static files bundled into @tarko/agent-ui-builder/static)

This aligns with the pattern already used by @agent-tars/cli and @tarko/omni-* packages which already have sourceMap: false.

Checklist

  • Added or updated necessary tests (Optional).
  • Updated documentation to align with changes (Optional).
  • Verified no breaking changes, or prepared solutions for any occurring breaking changes (Optional).
  • My change does not involve the above items.

Disable source map output in rslib/rsbuild configs for packages that are
published to npm. This prevents large .map files from being included in
the published tarballs, significantly reducing package size.

Affected packages:
- @tarko/agent-server (rslib)
- @agent-tars/core (rslib)
- @agent-tars/interface (rslib)
- @tarko/agent-ui (rsbuild → agent-ui-builder/static)
@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 1, 2026

Deploy Preview for tarko ready!

Name Link
🔨 Latest commit 7fa4547
🔍 Latest deploy log https://app.netlify.com/projects/tarko/deploys/69a45eac99d5da000899e94f
😎 Deploy Preview https://deploy-preview-1827--tarko.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 1, 2026

Deploy Preview for agent-tars-docs ready!

Name Link
🔨 Latest commit 7fa4547
🔍 Latest deploy log https://app.netlify.com/projects/agent-tars-docs/deploys/69a45eac7120ed00084478fa
😎 Deploy Preview https://deploy-preview-1827--agent-tars-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

[Bug Report]: should not publish source map

1 participant