Skip to content

✨ scaffold @datadog/browser-rum-vue package#4325

Merged
mormubis merged 5 commits intomainfrom
adlrb/vue-scaffold
Mar 16, 2026
Merged

✨ scaffold @datadog/browser-rum-vue package#4325
mormubis merged 5 commits intomainfrom
adlrb/vue-scaffold

Conversation

@mormubis
Copy link
Copy Markdown
Contributor

@mormubis mormubis commented Mar 13, 2026

Motivation

First of four PRs adding Vue 3 RUM integration. This one is just the empty package shell and monorepo plumbing. Nothing user-facing yet, but the next three PRs need this to exist first.

Changes

Creates the `@datadog/browser-rum-vue` package skeleton: `package.json`, empty entry stubs, the `vue-router-v4` sub-entry for the router integration in PR 3.

The rest is infrastructure:

  • tsconfig path mappings and ESLint allowlists so the monorepo tooling knows about the new package
  • license CSV entries for `vue`, `vue-router`, `@vue/test-utils`, `@vitejs/plugin-vue`
  • `swc-loader` rule to transpile vue-router for BrowserStack. Vue-router ships its devtools as a `.mjs` file with optional chaining, which older BS browsers can't parse. Same fix as the React packages already in that config.

Test instructions

No tests here, it's all plumbing. The test suite should pass unchanged.

Checklist

  • Tested locally
  • Tested on staging
  • Added unit tests (nothing to test, empty stubs)
  • Added e2e/integration tests
  • Updated documentation

module.rules.push({
test: /\.m?js$/,
include: /node_modules\/(react|react-router-dom|react-dom|react-router|turbo-stream)/,
include: /node_modules\/(react|react-router-dom|react-dom|react-router|turbo-stream|vue-router)/,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vue-router ships its devtools as a .mjs with optional chaining, older BS browsers blow up on it. Already transpiling React packages here for the same reason, vue-router is the same fix.

@mormubis mormubis force-pushed the adlrb/vue-scaffold branch 2 times, most recently from 89e5ba3 to b596035 Compare March 13, 2026 11:26
@cit-pr-commenter-54b7da
Copy link
Copy Markdown

cit-pr-commenter-54b7da bot commented Mar 13, 2026

Bundles Sizes Evolution

📦 Bundle Name Base Size Local Size 𝚫 𝚫% Status
Rum 175.00 KiB 175.00 KiB 0 B 0.00%
Rum Profiler 6.16 KiB 6.16 KiB 0 B 0.00%
Rum Recorder 27.46 KiB 27.46 KiB 0 B 0.00%
Logs 56.80 KiB 56.80 KiB 0 B 0.00%
Flagging 944 B 944 B 0 B 0.00%
Rum Slim 130.64 KiB 130.64 KiB 0 B 0.00%
Worker 23.63 KiB 23.63 KiB 0 B 0.00%
🚀 CPU Performance
Action Name Base CPU Time (ms) Local CPU Time (ms) 𝚫%
RUM - add global context 0.0046 0.0044 -4.35%
RUM - add action 0.0127 0.0154 +21.26%
RUM - add error 0.0135 0.0132 -2.22%
RUM - add timing 0.0025 0.0028 +12.00%
RUM - start view 0.0122 0.0126 +3.28%
RUM - start/stop session replay recording 0.0007 0.0011 +57.14%
Logs - log message 0.0144 0.0226 +56.94%
🧠 Memory Performance
Action Name Base Memory Consumption Local Memory Consumption 𝚫
RUM - add global context 27.37 KiB 27.23 KiB -146 B
RUM - add action 53.07 KiB 52.34 KiB -748 B
RUM - add timing 25.97 KiB 26.52 KiB +562 B
RUM - add error 55.69 KiB 55.50 KiB -186 B
RUM - start/stop session replay recording 25.52 KiB 25.40 KiB -121 B
RUM - start view 462.52 KiB 462.19 KiB -345 B
Logs - log message 44.79 KiB 45.14 KiB +360 B

🔗 RealWorld

@datadog-prod-us1-5
Copy link
Copy Markdown

datadog-prod-us1-5 bot commented Mar 13, 2026

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 77.21% (+0.00%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 594d73c | Docs | Datadog PR Page | Was this helpful? React with 👍/👎 or give us feedback!

@mormubis mormubis force-pushed the adlrb/vue-scaffold branch from b596035 to 165377f Compare March 13, 2026 13:12
@mormubis mormubis mentioned this pull request Mar 13, 2026
5 tasks
@mormubis mormubis marked this pull request as ready for review March 13, 2026 15:00
@mormubis mormubis requested a review from a team as a code owner March 13, 2026 15:00
@mormubis mormubis requested a review from a team as a code owner March 16, 2026 10:19
@mormubis mormubis merged commit dda266d into main Mar 16, 2026
21 checks passed
@mormubis mormubis deleted the adlrb/vue-scaffold branch March 16, 2026 15:27
@github-actions github-actions bot locked and limited conversation to collaborators Mar 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants