@marginallyuseful/soll-turbopack
v0.0.1-05b9ce9b
Published
Turbopack integration for soll — scans production builds for chunk-to-source mappings
Readme
@marginallyuseful/soll-turbopack
Turbopack integration for soll — scans production builds for chunk-to-source mappings.
Usage
CLI (CI pipelines)
next build
soll-turbopack .next/
npx playwright testProgrammatic
import { scanTurbopack } from "@marginallyuseful/soll-turbopack";
scanTurbopack({ buildDir: ".next" });How it works
- Walks the
.next/build output for JS files with sourcemaps - Parses each sourcemap's
sources[]array - Strips
turbopack:///[project]/prefixes, filters framework/runtime/vendor entries - Writes chunk→source mappings to the soll bundler plugin store
The @marginallyuseful/soll-playwright fixture reads these mappings for test selection.
Requirements
Set productionBrowserSourceMaps: true in next.config for client-side sourcemaps.
Server-side chunks always have sourcemaps regardless of this setting.
