Skip to content

Commit 6be4bdc

Browse files
committed
docs: remove unrelevant notes
1 parent cb4af4e commit 6be4bdc

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

NOTES.md

-39
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,5 @@
11
# Notes to self
22

3-
## ESM migration
4-
5-
### settings
6-
7-
| file - setting | commonjs | esm |
8-
| ------------------------------- | -------- | ------------- |
9-
| package.json - type | commonjs | module |
10-
| tsconfig.json - module | commonjs | es2020 |
11-
| tsconfig.json - esModuleInterop | true | not required? |
12-
13-
### exporting modules
14-
15-
src/index.ts
16-
17-
commonjs
18-
19-
```javascript
20-
import { default as Bir } from './bir'
21-
export = Bir
22-
```
23-
24-
esm
25-
26-
```javascript
27-
import Bir from "./bir.js";
28-
export default Bir;
29-
```
30-
31-
### \_\_dirname
32-
33-
definie \_\_dirname missing in esm
34-
35-
```javascript
36-
import path from "path";
37-
import { fileURLToPath } from "url";
38-
const __filename = fileURLToPath(import.meta.url);
39-
const __dirname = path.dirname(__filename);
40-
```
41-
423
## API documentation
434

445
consider to use

0 commit comments

Comments
 (0)