A fork of karma-webpack that adds support for file-based source maps and hot testing. Version 1.10.2 supports webpack 1-3. It allows running only affected tests on file changes using a manifest array, and provides faster source map generation via 'cheap-module-source-map' devtool. This package is largely superseded by modern karma-webpack versions (5+) that include better source map support and webpack 5 compatibility. It is not actively maintained and should not be used for new projects.
npm install karma-webpack-with-fast-source-mapsVerified import paths — ran on the pinned version, not inferred.
Karma configuration using karma-webpack-with-fast-source-maps with webpack preprocessor, fast source maps, and a single test entry point.
Replace with 'karma-webpack' and update configuration for version 5.
Upgrade to karma-webpack v4+ for webpack 4 support, or v5+ for webpack 5.
Use 'webpack' as preprocessor name, e.g., preprocessors: { 'test.js': ['webpack'] }.Ensure test entry file declares var __karmaWebpackManifest__ = []; before using it.
Add babel-loader or similar to webpack config to transpile ES modules.
Run: npm install --save-dev karma-webpack-with-fast-source-maps
Run: npm install --save-dev webpack@3 (or compatible version)
Add webpack: { ... } to karma.conf.jsEnsure preprocessors is a top-level config key with object value: preprocessors: { 'test.js': ['webpack'] }