New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

karma-rolldown-preprocessor

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma-rolldown-preprocessor

Karma preprocessor to bundle ES modules using Rolldown.

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
3
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

karma-rolldown-preprocessor

Build Status

Karma preprocessor to bundle ES modules using Rolldown.

Fork of karma-rollup-preprocessor with Rolldown based implementation from Discord comment by Jeremy Scheff.

Install

npm install karma-rolldown-preprocessor --save-dev

Usage

All the options detailed in the Rolldown documentation can be passed to rolldownPreprocessor.

// karma.conf.js
export default function (config) {
	config.set({
		files: [
			/**
			 * Make sure to disable Karma’s file watcher
			 * because the preprocessor will use its own.
			 */
			{ pattern: 'test/**/*.spec.js', watched: false }
		],
		preprocessors: {
			'test/**/*.spec.js': ['rolldown']
		},
		rolldownPreprocessor: {
			/**
			 * This is just a normal Rolldown config object,
			 * except that `input` is handled for you.
			 */
			output: {
				format: 'iife', // Helps prevent naming collisions.
				name: '<your_project>', // Required for 'iife' format.
				sourcemap: 'inline' // Sensible for testing.
			}
		}
	});
}

License

MIT © Ivan Nikolić

Keywords

es

FAQs

Package last updated on 15 Nov 2025

Did you know?

Socket

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.

Install

Related posts