Skip to content

Commit dec030b

Browse files
committed
update nestjs cjs and index in installation methods
1 parent 2c6b6a3 commit dec030b

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: CommonJS (CJS)
3+
sidebar_order: 9
4+
description: "Learn about running Sentry in an CJS application."
5+
supported:
6+
- javascript.nestjs
7+
---
8+
9+
<Alert>
10+
Are you unsure if you should use this installation method? Review our
11+
[installation methods](../).
12+
</Alert>
13+
14+
Most node applications today are either written in CommonJS (CJS), or compiled to CJS before running them.
15+
CommonJS uses `require()` to load modules.
16+
17+
You can find installation instructions for CommonJS in the SDK's <PlatformLink to="/">Quick Start guide</PlatformLink>.

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ supported:
1010
- javascript.hapi
1111
- javascript.hono
1212
- javascript.koa
13-
- javascript.nestjs
1413
---
1514

1615
<Alert>

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ CommonJS uses `require()` to load modules. Our recommended installation method w
4141

4242
Note that even if your application is written in ESM (using `import`), it may still be _run_ in CJS. In this case, you should follow the [CommonJS instructions](./commonjs).
4343

44+
<PlatformSection supported={["javascript.nestjs"]}>
45+
### My application is a simple/default Nest.js app
46+
47+
Nest.js transpiles to CJS by default, so you should follow the [CommonJS installation instructions](./commonjs). Keep reading if you have a more customized application or build setup.
48+
49+
</PlatformSection>
50+
4451
### My application is in TypeScript
4552

4653
If you're using TypeScript, your application is likely compiled to CommonJS before running it. In this case, you should follow the [CommonJS instructions](./commonjs).

0 commit comments

Comments
 (0)