
Company News
Socket Has Acquired Secure Annex
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.
rollup-plugin-strip-pragma
Advanced tools
A Rollup plugin to strip requirejs build pragmas from your code.
npm install rollup-plugin-strip-pragma --save-dev
Given source code with a requirejs build pragma, such as:
Cartesian3.fromSpherical = function(spherical, result) {
//>>includeStart('debug', pragmas.debug);
Check.typeOf.object('spherical', spherical);
//>>includeEnd('debug');
...
}
The following rollup usage will produce code with pragmas stripped.
const rollup = require('rollup');
const rollupStripPragma = require('./rollup-plugin-strip-pragma');
const bundle = await rollup.rollup({
input: 'source.js',
plugins: [
rollupStripPragma({
pragmas: ['debug']
})
]
});
FAQs
A Rollup plugin to strip requirejs build pragmas from your code.
The npm package rollup-plugin-strip-pragma receives a total of 938 weekly downloads. As such, rollup-plugin-strip-pragma popularity was classified as not popular.
We found that rollup-plugin-strip-pragma 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.

Company News
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.

Research
/Security News
Socket is tracking cloned Open VSX extensions tied to GlassWorm, with several updated from benign-looking sleepers into malware delivery vehicles.

Product
Reachability analysis for PHP is now available in experimental, helping teams identify which vulnerabilities are actually exploitable.