@marginallyuseful/soll-webpack
v0.0.1-05b9ce9b
Published
Webpack plugin for soll — extracts chunk-to-source mappings for browser test selection
Downloads
60
Readme
@marginallyuseful/soll-webpack
Webpack 5 plugin for soll — extracts chunk-to-source mappings for browser test selection.
Usage
// webpack.config.js
const SollWebpackPlugin = require("@marginallyuseful/soll-webpack");
module.exports = {
plugins: [new SollWebpackPlugin()],
};How it works
- Hooks into
compiler.hooks.afterEmitafter webpack writes output - Iterates
compilation.chunksand extracts modules viachunkGraph.getChunkModules() - Normalizes absolute module paths to git-root-relative paths
- Writes chunk-to-source mappings to the soll bundler plugin store
The @marginallyuseful/soll-playwright fixture reads these mappings for test selection.
Options
| Option | Type | Default | Description |
| ------ | -------- | ----------- | ----------------- |
| root | string | auto-detect | Git root override |
