Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
karma-rollup-preprocessor
Advanced tools
Preprocessor to bundle ES6 modules fly with rollup.
This preprocessor is mainly used to bundle your spec entry point but might be useful in other cases as well.
npm install karma-rollup-preprocessor --save-dev
The rollupPreprocessor
configuration is optional. (You'll need to install more dependencies). It takes two keys: rollup
and
bundle
.
rollup
is the configuration object for rollup
(See rollup.rollup for more details).
bundle
is the configuration object used when generating the bundle (See bundle.generate for more details)
Notice this is preprocessor and does not write a file or return the bundle, only the content of the processed file gets changed.
So when adding the sourceMaps
options, inline
is the only logical value.
module.exports = function (config) {
config.set({
preprocessors: {
'test/main.js': ['rollup']
},
rollupPreprocessor: {
rollup: {
plugins: [
require('rollup-plugin-babel')({
presets: [
require('babel-preset-es2015-rollup')
]
})
]
},
bundle: {
sourceMap: 'inline'
}
}
});
};
FAQs
Karma preprocessor to bundle ES modules using Rollup
We found that karma-rollup-preprocessor 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
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.