1.1.4 • Published 5 months ago

@gongt/fix-esm v1.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

fix-esm

fix ERR_REQUIRE_ESM with realtime esbuild transform.

require('@gongt/fix-esm') will register legacy commonjs loader, mutiple call will ignored. (no way to unregister)

When ERR_REQUIRE_ESM happen, it will spawn esbuild to compile target file. loaded module will inside require cache. compiled result will save at filename.jsc to speed up next run.

It's best to use this package in a final-end-user project, not in a library, many people have thier own fix-esm method, may cause conflict.

1.1.1

6 months ago

1.1.4

5 months ago

1.1.3

6 months ago

1.1.2

6 months ago

1.1.0

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

1.0.3

2 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago