Commit be4ec56
authored
fix: require is not defined error (#47)
The `require()` function is not defined in ES module scope. Loading a
JSON file via `import` is behind `--experimental-json-modules` on LTS
versions of Node.js, so use `createRequire()` instead.
Refs: #431 parent 6d78f4a commit be4ec56
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
0 commit comments