1.1.1 • Published 3 years ago

@tszip/esm-require v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

ESM Require Shim

This script ensures that there is a valid require identifier in the global context so that an ES module can use it if needed and, more importantly, import dependencies which include references to require without throwing.

It only checks if globalThis.require is undefined, and if it is, it sets it to createRequire(import.meta.url).

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.3.0

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.5.0

3 years ago

0.4.0

3 years ago

0.2.5

3 years ago

0.1.0

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.4

3 years ago

0.0.1

3 years ago