Skip to content

[rum] Inject RUM's React plugin #124

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

Draft
wants to merge 25 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
044f85b
Fix create-plugin templates
yoannmoinet Nov 28, 2024
5d2d374
Move sourcemaps into error-tracking instead of rum
yoannmoinet Nov 29, 2024
d101adc
Simplify the test script
yoannmoinet Nov 29, 2024
040297c
Update doc and types
yoannmoinet Nov 29, 2024
2f467d2
Factorise esbuild entries helper
yoannmoinet Jan 14, 2025
84ad98f
Fix cwd issue with working dir cwd in rollup/vite
yoannmoinet Jan 14, 2025
acaaa3d
Detect and flag duplicate plugins
yoannmoinet Jan 14, 2025
eeb5053
Refactor injection plugin to include positions
yoannmoinet Jan 14, 2025
e6f8db7
Remove injected file from xspack reports
yoannmoinet Jan 14, 2025
74d2575
Comments, TODOs and missing deps
yoannmoinet Jan 14, 2025
71ff74a
Inconsequential config updates and bumps
yoannmoinet Jan 14, 2025
dc74a2e
More reliable environment setup for Jest running context
yoannmoinet Jan 14, 2025
1cb88e2
Sandbox fixture projects and builds in a temp working directory
yoannmoinet Jan 14, 2025
91217cc
Bump node to 18.20.5
yoannmoinet Jan 14, 2025
0461840
Lock update
yoannmoinet Jan 14, 2025
13e6c7d
Fix readme template RX to handle double markers
yoannmoinet Jan 16, 2025
517d291
Lighten and improve readmes
yoannmoinet Jan 16, 2025
1e9066f
Add auth to doRequest helper
yoannmoinet Jan 15, 2025
c0d3d5d
Improve logger and build report with infos on the bundler
yoannmoinet Jan 15, 2025
5bfbe4b
Fix injection plugin with better isolation
yoannmoinet Jan 15, 2025
9fa50bc
Change bundling to allow plugins to add their own files to build
yoannmoinet Jan 15, 2025
0eff8a0
Add RUM Browser SDK plugin
yoannmoinet Jan 16, 2025
5f3ea86
Small test inconsequential update
yoannmoinet Jan 16, 2025
ad05939
Add RUM's react plugin injection
yoannmoinet Jan 16, 2025
76e2e48
Update external dependencies
yoannmoinet Jan 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ module.exports = {
],
'no-delete-var': 'error',
'no-label-var': 'error',
'no-shadow': 'error',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': ['error'],
'no-shadow-restricted-names': 'error',
'no-undef': 'error',
'no-undef-init': 'error',
Expand Down Expand Up @@ -390,7 +391,12 @@ module.exports = {
},
},
{
files: ['rollup.config.mjs', 'packages/core/**/*', 'packages/published/**/*'],
files: [
'rollup.config.mjs',
'packages/core/**/*',
'packages/published/**/*',
'packages/plugins/**/built/*',
],
rules: {
'import/no-extraneous-dependencies': 'off',
},
Expand Down
8 changes: 6 additions & 2 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ packages/tests/src/plugins/injection @yoannmoin
packages/plugins/telemetry @DataDog/frontend-devx @yoannmoinet
packages/tests/src/plugins/telemetry @DataDog/frontend-devx @yoannmoinet

# Error Tracking
packages/plugins/error-tracking @yoannmoinet
packages/tests/src/plugins/error-tracking @yoannmoinet

# Rum
packages/plugins/rum @DataDog/rum @yoannmoinet
packages/tests/src/plugins/rum @DataDog/rum @yoannmoinet
packages/plugins/rum @yoannmoinet
packages/tests/src/plugins/rum @yoannmoinet
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
with:
node-version: ${{matrix.node}}.x
- run: yarn install
- run: yarn build:all
- run: yarn test

lint:
Expand Down
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.19.0
18.20.5
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@
"**/.yarn/": true,
"**/.yarnrc.yml": true,
"**/yarn.lock": true
}
},
"typescript.tsdk": "node_modules/typescript/lib"
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 Datadog
Copyright (c) 2025 Datadog

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 6 additions & 0 deletions LICENSES-3rdparty.csv
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ Component,Origin,Licence,Copyright
@babel/types,npm,MIT,The Babel Team (https://babel.dev/docs/en/next/babel-types)
@bcoe/v8-coverage,npm,MIT,Charles Samborski (https://demurgos.github.io/v8-coverage)
@cspotcode/source-map-support,npm,MIT,(https://www.npmjs.com/package/@cspotcode/source-map-support)
@datadog/browser-core,npm,Apache-2.0,(https://www.npmjs.com/package/@datadog/browser-core)
@datadog/browser-rum,virtual,Apache-2.0,(https://www.npmjs.com/package/@datadog/browser-rum)
@datadog/browser-rum-core,npm,Apache-2.0,(https://www.npmjs.com/package/@datadog/browser-rum-core)
@datadog/browser-rum-react,virtual,Apache-2.0,(https://www.npmjs.com/package/@datadog/browser-rum-react)
@esbuild/darwin-arm64,npm,MIT,(https://www.npmjs.com/package/@esbuild/darwin-arm64)
@esbuild/linux-x64,npm,MIT,(https://www.npmjs.com/package/@esbuild/linux-x64)
@eslint-community/eslint-utils,virtual,MIT,Toru Nagashima (https://github.com/eslint-community/eslint-utils#readme)
Expand Down Expand Up @@ -171,6 +175,7 @@ Component,Origin,Licence,Copyright
@rollup/plugin-commonjs,virtual,MIT,Rich Harris (https://github.com/rollup/plugins/tree/master/packages/commonjs/#readme)
@rollup/plugin-json,virtual,MIT,rollup (https://github.com/rollup/plugins/tree/master/packages/json#readme)
@rollup/plugin-node-resolve,virtual,MIT,Rich Harris (https://github.com/rollup/plugins/tree/master/packages/node-resolve/#readme)
@rollup/plugin-terser,virtual,MIT,Peter Placzek (https://github.com/rollup/plugins/tree/master/packages/terser#readme)
@rollup/pluginutils,virtual,MIT,Rich Harris (https://github.com/rollup/plugins/tree/master/packages/pluginutils#readme)
@rollup/rollup-darwin-arm64,npm,MIT,Lukas Taegert-Atkinson (https://rollupjs.org/)
@rspack/binding,npm,MIT,(https://rspack.dev)
Expand Down Expand Up @@ -822,6 +827,7 @@ simple-git,npm,MIT,Steve King (https://www.npmjs.com/package/simple-git)
sisteransi,npm,MIT,Terkel Gjervig (https://terkel.com)
slash,npm,MIT,Sindre Sorhus (sindresorhus.com)
slice-ansi,npm,MIT,(https://www.npmjs.com/package/slice-ansi)
smob,npm,MIT,Peter Placzek (https://github.com/Tada5hi/smob#readme)
snapdragon,npm,MIT,Jon Schlinkert (https://github.com/jonschlinkert/snapdragon)
snapdragon-node,npm,MIT,Jon Schlinkert (https://github.com/jonschlinkert/snapdragon-node)
snapdragon-util,npm,MIT,Jon Schlinkert (https://github.com/jonschlinkert/snapdragon-util)
Expand Down
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Datadog build-plugins
Copyright 2024-present Datadog, Inc.
Copyright 2025-present Datadog, Inc.

This product includes software developed at Datadog (https://www.datadoghq.com/).
Loading
Loading