
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.
unplugin-sourcemaps
Advanced tools
Universal plugin for loading existing source maps from imported modules. Works with Vite, Rollup, webpack, and esbuild.
Universal plugin for loading existing source maps from imported modules.
Works with Vite, Rollup, esbuild, and Webpack.
Start by installing the package:
npm install unplugin-sourcemaps --save-dev
Then register the bundler-specific plugin and enable the source maps.
// vite.config.js
import { defineConfig } from 'vite';
import { ViteSourcemap } from 'unplugin-sourcemaps';
export default defineConfig( {
plugins: [
ViteSourcemap()
],
build: {
sourcemap: true
}
} );
// rollup.config.js
import { defineConfig } from 'rollup';
import { RollupSourcemap } from 'unplugin-sourcemaps';
export default defineConfig( {
output: {
// Other options are skipped for brevity
sourcemap: true,
},
plugins: [
RollupSourcemap()
]
} );
import { build } from 'esbuild';
import { EsbuildSourcemap } from 'unplugin-sourcemaps';
build( {
sourcemap: true,
plugins: [
SondaEsbuildPlugin()
]
} );
// webpack.config.js
const { WebpackSourcemap } = require( 'unplugin-sourcemaps' );
module.exports = {
devtool: 'source-map',
plugins: [
WebpackSourcemap()
],
};
FAQs
Universal plugin for loading existing source maps from imported modules. Works with Vite, Rollup, webpack, and esbuild.
The npm package unplugin-sourcemaps receives a total of 16 weekly downloads. As such, unplugin-sourcemaps popularity was classified as not popular.
We found that unplugin-sourcemaps 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.
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.