Skip to content

Commit ec6ad20

Browse files
committed
Clean up note about cjs
1 parent 47235f4 commit ec6ad20

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,12 @@ First, you need to install the module. We ship exclusively through [npm](https:/
2424
npm install --save @xterm/xterm
2525
```
2626

27-
The recommended way to load xterm.js with the ES module syntax, either using TypeScript or a modern JS tooling.
27+
The recommended way to load xterm.js with the ES module syntax, either using TypeScript or a modern JS tooling. Note that both CommonJS and ES module files are shipped with the npm package.
2828

2929
```javascript
3030
import { Terminal } from '@xterm/xterm';
3131
```
3232

33-
> ![TIP]
34-
> xterm.js ships both a CommonJS (`main` in package.json) and ES module files (`module` in package.json).
35-
3633
Then instantiate a `Terminal` object, open it on an element and write to it:
3734

3835
```javascript

0 commit comments

Comments
 (0)