Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@sentry/babel-plugin-component-annotate
Advanced tools
A Babel plugin that annotates frontend components with additional data to enrich the experience in Sentry
A Babel plugin that automatically annotates your output DOM with their respective frontend component names.
This will unlock the capability to search for Replays in Sentry by component name, as well as see component names in breadcrumbs and performance monitoring.
Please note that your Sentry JavaScript SDK version must be at least 7.91.0
to take advantage of these features.
Currently, this plugin only works with React, and will exclusively parse .jsx
and .tsx
files.
This plugin comes included in Sentry's bundler plugins, alongside many other features to improve your Sentry workflow. It can be downloaded individually, but it is recommended that you install the bundler plugins for your respective bundler, and enable this feature through the config object.
Check out the supported bundler plugin packages for installation instructions:
Using npm:
npm install @sentry/babel-plugin-component-annotate --save-dev
Using yarn:
yarn add @sentry/babel-plugin-component-annotate --dev
Using pnpm:
pnpm add @sentry/babel-plugin-component-annotate --save-dev
// babel.config.js
{
// ... other config above ...
plugins: [
// Put this plugin before any other plugins you have that transform JSX code
['@sentry/babel-plugin-component-annotate']
],
}
Or alternatively, configure the plugin by directly importing it:
// babel.config.js
import componentNameAnnotatePlugin from '@sentry/babel-plugin-component-annotate';
{
// ... other config above ...
plugins: [
// Put this plugin before any other plugins you have that transform JSX code
[componentNameAnnotatePlugin]
],
}
2.18.0
applicationKey
option to identify application code from within the SDK (#540)moduleMetadata
option to stable (#538)bundle: true
(#542)FAQs
A Babel plugin that annotates frontend components with additional data to enrich the experience in Sentry
The npm package @sentry/babel-plugin-component-annotate receives a total of 1,356,195 weekly downloads. As such, @sentry/babel-plugin-component-annotate popularity was classified as popular.
We found that @sentry/babel-plugin-component-annotate demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 11 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.