Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
babel-plugin-module-replace
Advanced tools
A Babel plugin to replace module import and export paths
A Babel plugin for replacing import and export paths
Replace ESM import and export paths by regular expression or JavaScript function.
Since it replaces the paths before the modules are transpiled, it can also be used to replace the paths for other transpiled module loaders.
Must be configured to change anything, it will not do anything by default.
replace
{
"plugins": [
[
"module-replace",
{
"replace": [
["/^alpha$/", "$1-new"],
["/^beta$/", "$1-new"]
]
}
]
]
}
export default {
plugins: [
[
'module-replace',
{
replace: [[/^(\.\.?\/.+)\.(m|c)?tsx?$/i, '$1.js']]
}
]
]
};
export default {
plugins: [
[
'module-replace',
{
replace: [m => m.toLowerCase()]
}
]
]
};
If you find a bug or have compatibility issues, please open a ticket under issues section for this repository.
Copyright (c) 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 to replace module import and export paths
The npm package babel-plugin-module-replace receives a total of 7 weekly downloads. As such, babel-plugin-module-replace popularity was classified as not popular.
We found that babel-plugin-module-replace 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.