0.1.0 • Published 2 years ago

@lunjs/ensure-esm-import-explicit v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@lunjs/ensure-esm-import-explicit

Ensure that import path is a full path to a module.

To avoid adding --experimental-specifier-resolution=node flag, we should provide a full path to the loader. (see: Customizing ESM specifier resolution algorithm)

Installation

npm i @lunjs/ensure-esm-import-explicit

Usage

ensure-esm-import-explicit --source ./dist --in-place

License

MIT