
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
babel-plugin-tsconfig-paths
Advanced tools
Resolve imports/requires based on paths from tsconfig.json
tsconfig.json
npm install -D babel-plugin-tsconfig-paths
// .babelrc
{
"plugins": [
[
"babel-plugin-tsconfig-paths",
{
"relative": true,
"extensions": [
".js",
".jsx",
".ts",
".tsx",
".es",
".es6",
".mjs"
],
"rootDir": ".",
"tsconfig": "tsconfig.json",
"transformFunctions": [
"require",
"require.resolve",
"System.import",
"jest.genMockFromModule",
"jest.mock",
"jest.unmock",
"jest.doMock",
"jest.dontMock",
"jest.setMock",
"require.requireActual",
"require.requireMock"
]
}
]
]
}
relative
: Generate relative paths instead of absolute paths when
converting aliased import paths.
true
extensions
: Which file extensions to resolve.
[".js", ".jsx", ".ts", ".tsx", ".es", ".es6", ".mjs"]
rootDir
: Where to look for tsconfig.json
.
process.cwd()
tsconfig
: Relative/absolute location of tsconfig.json
./tsconfig.json
transformFunctions
: Which functions to transform aliases in
Default:
[
"require",
"require.resolve",
"System.import",
"jest.genMockFromModule",
"jest.mock",
"jest.unmock",
"jest.doMock",
"jest.dontMock",
"jest.setMock",
"require.requireActual",
"require.requireMock"
]
FAQs
Resolve imports/requires based on paths from tsconfig.json
The npm package babel-plugin-tsconfig-paths receives a total of 7,864 weekly downloads. As such, babel-plugin-tsconfig-paths popularity was classified as popular.
We found that babel-plugin-tsconfig-paths demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.