
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@hqjs/babel-plugin-transform-paths
Advanced tools
Transform global and local paths to full path with server URL
Transform global and local paths to full path with server URL
npm install hqjs@babel-plugin-transform-paths
{
"plugins": [["hqjs@babel-plugin-transform-paths", {
"basePath": "",
"baseURI": "http://localhost:8080",
"dirname": "/path/to/module",
"removeNodeModules": false,
"transformAbsolute": false
}]]
}
where
'' by defaultbasePath, meant to resolve relative imports/node_modules part of the path be removedURL will be constructed this way:
./rest -> ${baseURI}${basePath}${dirname}${rest}@/rest -> ${baseURI}${basePath}/${rest}/rest -> ${baseURI}${basePath}/${rest} or /${rest} depending on transformAbsolute option/node-modules/rest -> ${baseURI}${basePath}${rest} or ${baseURI}${basePath}node_modules/${rest} depending on removeNodeModules optionPlugin resolves relative paths ./..., ../..., node_modules paths /node_modules/... and vue absolute paths @/... to full URL.
FAQs
Transform global and local paths to full path with server URL
We found that @hqjs/babel-plugin-transform-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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.