Skip to content

Commit 12096bc

Browse files
authored
docs(js): Update package install page (#11610)
1 parent d233e6b commit 12096bc

File tree

1 file changed

+21
-1
lines changed
  • docs/platforms/javascript/common/install

1 file changed

+21
-1
lines changed

docs/platforms/javascript/common/install/npm.mdx

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,24 @@ notSupported:
3535
- javascript.cloudflare
3636
---
3737

38-
<PlatformContent includePath="getting-started-install" />
38+
The npm package for Sentry offers several advantages for specific use cases:
39+
40+
- **Framework-specific features**: If you're using a framework like React or Vue, installing the corresponding Sentry SDK (e.g., `@sentry/react` or `@sentry/vue`) via npm provides framework-specific features and optimizations.
41+
42+
- **Full public API access**: The npm package exposes the complete set of Sentry's public APIs, allowing for more extensive customization and functionality.
43+
44+
- **Version control**: Installing via npm gives you full control over the SDK version, enabling you to manage updates and ensure compatibility with your project.
45+
46+
- **Build process integration**: Using the npm package allows for better integration with your build process and bundling tools.
47+
48+
```bash {tabTitle:npm}
49+
npm install @sentry/browser --save
50+
```
51+
52+
```bash {tabTitle:yarn}
53+
yarn add @sentry/browser
54+
```
55+
56+
```bash {tabTitle:pnpm}
57+
pnpm add @sentry/browser
58+
```

0 commit comments

Comments
 (0)