Repository navigation
Commit aeede54
committed
refactor(prettier-plugin-toml): import the tombi binding directly
`@tombi-toml/lib` is CommonJS, so the ESM build and the CJS build can both
import it the ordinary way. The dynamic `import()` was only ever needed
because `@tombi-toml/wasm-lib` is ESM-only -- its `exports` map has no
`require` condition -- so the CommonJS bundle could not load it at all.
This also drops the promise cache and the `typeof import()` alias.1 parent 74b6650 commit aeede54
1 file changed
Lines changed: 1 addition & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 17 | | |
22 | 18 | | |
23 | 19 | | |
| |||
35 | 31 | | |
36 | 32 | | |
37 | 33 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 34 | | |
49 | 35 | | |
50 | 36 | | |
| |||
75 | 61 | | |
76 | 62 | | |
77 | 63 | | |
78 | | - | |
79 | | - | |
80 | 64 | | |
81 | 65 | | |
82 | 66 | | |
| |||
0 commit comments