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
Karma preprocessor to bundle ES6 modules using Rollup.
npm install karma-rollup-preprocessor --save-dev
All the options detailed in the Rollup Documentation can be passed to rollupPreprocessor
.
Below is a well-founded recommendation using the Bublé ES2015 transpiler:
// karma.conf.js
module.exports = function (config) {
config.set({
files: [
'src/**/*.js',
'test/**/*.spec.js',
],
preprocessors: {
'src/**/*.js': ['rollup'],
'test/**/*.spec.js': ['rollup'],
},
rollupPreprocessor: {
plugins: [
require('rollup-plugin-buble')(),
],
format: 'iife', // helps prevent naming collisions
moduleName: '<your_project>' // required for 'iife' format
sourceMap: 'inline', // sensible for testing
},
});
};
Supports all Rollup plug-ins, and works on Node 0.12.x
and up. Happy bundling!
[3.0.0] - 2016-12-02
A special thanks to @klaascuvelier who originally authored this repository, and has passed the torch to @jlmakes to keep things in tidy working order.
2.0.0
change that split preprocessor options has been reverted.1.0.0
. #12 #130.12
, 4
and 6
.karma-jasmine
to latest major version.FAQs
Karma preprocessor to bundle ES modules using Rollup
The npm package karma-rollup-preprocessor receives a total of 49,946 weekly downloads. As such, karma-rollup-preprocessor popularity was classified as popular.
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.