Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
rollup-plugin-sourcemaps
Advanced tools
Rollup plugin for grabbing source maps from sourceMappingURLs
The rollup-plugin-sourcemaps package is a Rollup plugin that allows you to include existing source maps in your build process. This is particularly useful when you are working with libraries that already have source maps, and you want to preserve them in your final bundle.
Include existing source maps
This feature allows you to include existing source maps in your Rollup build. By using the sourcemaps() plugin, Rollup will read the source maps from your input files and include them in the final bundle.
{"plugins":["sourcemaps()"]}
Generate source maps for transformed code
This feature allows you to generate source maps for the transformed code. By setting the sourcemap option to true in the output configuration and using the sourcemaps() plugin, Rollup will generate source maps for the final bundle.
{"input":"src/main.js","output":{"file":"bundle.js","format":"cjs","sourcemap":true},"plugins":["sourcemaps()"]}
The rollup-plugin-terser package is a Rollup plugin that minifies your code using Terser. While it does not directly handle source maps, it can work in conjunction with rollup-plugin-sourcemaps to minify code while preserving source maps.
The rollup-plugin-babel package is a Rollup plugin that allows you to use Babel to transpile your code. It can generate source maps for the transformed code, similar to rollup-plugin-sourcemaps, but it focuses on code transformation rather than source map inclusion.
The rollup-plugin-typescript2 package is a Rollup plugin that integrates TypeScript with Rollup. It can generate source maps for TypeScript code, similar to rollup-plugin-sourcemaps, but it is specifically designed for TypeScript projects.
Rollup plugin for loading files with existing source maps. Inspired by webpack/source-map-loader.
Works with rollup 0.31.2 or later.
If you use rollup-plugin-babel,
you might be able to use the inputSourceMap
option instead of this plugin.
import sourcemaps from 'rollup-plugin-sourcemaps';
export default {
input: 'src/index.js',
plugins: [sourcemaps()],
output: {
sourcemap: true,
file: 'dist/my-awesome-package.js',
},
};
0.6.3
FAQs
Rollup plugin for grabbing source maps from sourceMappingURLs
The npm package rollup-plugin-sourcemaps receives a total of 267,153 weekly downloads. As such, rollup-plugin-sourcemaps popularity was classified as popular.
We found that rollup-plugin-sourcemaps 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.