UNPKG
to-esm
Version:
latest (2.28.6)
2.28.6
2.28.5
2.28.4
2.28.3
2.28.2
2.28.1
2.28.0
2.27.6
2.27.5
2.27.4
2.27.3
2.27.2
2.27.1
2.27.0
2.26.5
2.26.4
2.26.3
2.26.2
2.26.1
2.26.0
2.25.0
2.24.1
2.24.0
2.23.2
2.23.1
2.23.0
2.22.3
2.22.2
2.22.1
2.22.0
2.21.0
2.20.3
2.20.2
2.20.1
2.20.0
2.19.0
2.18.0
2.17.0
2.16.0
2.15.0
2.14.1
2.14.0
2.13.1
2.13.0
2.12.1
2.12.0
2.11.3
2.11.2
2.11.1
2.11.0
2.10.0
2.9.4
2.9.3
2.9.2
2.9.1
2.9.0
2.8.0
2.7.2
2.7.1
2.7.0
2.6.0
2.5.1
2.5.0
2.4.8
2.4.7
2.4.6
2.4.5
2.4.4
2.4.3
2.4.2
2.4.1
2.4.0
2.3.0
2.2.0
2.1.1
2.1.0
2.0.2
2.0.1
2.0.0
1.8.0
1.7.1
1.7.0
1.6.8
1.6.7
1.6.6
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.5.0
1.4.2
1.4.1
1.3.7
1.3.6
1.3.5
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.0
1.1.11
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
Tool to convert Commonjs files into ESM
github.com/thimpat/to-esm/blob/main/README.md
thimpat/to-esm
to-esm
/
demo-out
/
test.js
18 lines
(11 loc)
•
194 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import
{
AnyClass
}
from
"anylib"
;
import
test2
from
"./test2.js"
; test2.
doIt
();
// test2.js
export
default
{
doIt
:
() =>
{
console
.
log
(
"hello"
) } }