Fix #441 #591 - Generate ESM version of main CJS file at build time

This commit is contained in:
Faisal Salman
2023-03-18 17:04:43 +07:00
parent 6821276669
commit 31f94f3a51
3 changed files with 1233 additions and 2 deletions

View File

@@ -473,6 +473,12 @@ http.createServer(function (req, res) {
console.log('Server running at http://127.0.0.1:1337/');
```
## Using ES Modules
```js
import { UAParser } from 'ua-parser-js';
```
## Using TypeScript
```sh