Skip to content

Commit c600d06

Browse files
committed
updates for consistency
1 parent fb8bfb0 commit c600d06

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/platforms/javascript/guides/nestjs/install/esm-without-import.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ supported:
1111
[installation methods](../).
1212
</Alert>
1313

14-
When running your application in ESM mode, you will most likely want to <PlatformLink to="/install/esm">follow the ESM instructions</PlatformLink>. However, if you want to avoid using the `--import` command line option, for example if you have no way of configuring a CLI flag, you can also follow an alternative setup that involves importing the `instrument.mjs` file directly in your application.
14+
When running your application in [ECMAScript Modules](https://nodejs.org/api/esm.html#introduction) (ESM) mode, you'll most likely want to <PlatformLink to="/install/esm">follow the ESM instructions</PlatformLink>. However, if you want to avoid using the `--import` command line option, for example, if you have no way of configuring a CLI flag, you can also follow an alternative setup that involves importing the `instrument.mjs` file directly in your application.
1515

1616
<Alert level='warning' title='Restrictions of this installation method'>
1717

docs/platforms/javascript/guides/nestjs/install/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ supported:
1010

1111
## How To Decide Which Installation Method To Use
1212

13-
Most node applications today are either written in CommonJS (CJS), or compiled to CJS before running them.
14-
CommonJS uses `require()` to load modules. Our recommended installation method when using CommonJS is to require the `instrument.js` file at the top of your application. However, if your application is run in ESM mode, this will not work, in which case you can follow the [ESM docs](./esm).
13+
Most node applications today are either written in or compiled to CommonJS (CJS), which uses `require()` to load modules.
14+
Our recommended installation method when using CommonJS is to require the `instrument.js` file at the top of your application. However, if your application is run in [ECMAScript Modules](https://nodejs.org/api/esm.html#introduction) (ESM) mode, this will not work, in which case you can follow the [ESM docs](./esm).
1515

1616
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).
1717

0 commit comments

Comments
 (0)