
Security News
Python Adopts Standard Lock File Format for Reproducible Installs
Python has adopted a standardized lock file format to improve reproducibility, security, and tool interoperability across the packaging ecosystem.
babel-plugin-esm-resolver
Advanced tools
A Babel plugin for resolving ESM import and export paths
Resolves ESM import and export paths to other source modules with extensions, optionally replacing the extension with a different one. This is useful because most environments will not perform automatic file extension resolution.
Since it resolves the statements before the modules are transpiled, it can also be used to resolve the paths for other transpiled module loaders.
Must be configured to work properly, it will not do anything by default.
There are three classes of resolver that can be enabled (source
, module
, submodule
) depending on the modules that need to be resolved. Module support for ESM has improved so only source
is likely to be needed.
source
Source modules: import foo from './bar'
module
Module main entry points: import foo from 'bar'
submodule
Module submodules: import foo from 'bar/foo'
NOTE: The module
and submodule
options are generally no longer needed now that conditional exports are available.
If you find a bug or have compatibility issues, please open a ticket under issues section for this repository.
Copyright (c) 2019-2024 Alexander O'Mara
Licensed under the Mozilla Public License, v. 2.0.
If this license does not work for you, feel free to contact me.
FAQs
A Babel plugin for resolving ESM import and export paths
The npm package babel-plugin-esm-resolver receives a total of 24 weekly downloads. As such, babel-plugin-esm-resolver popularity was classified as not popular.
We found that babel-plugin-esm-resolver demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Python has adopted a standardized lock file format to improve reproducibility, security, and tool interoperability across the packaging ecosystem.
Security News
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.