@divebell/rspack-plugin
v0.0.32
Published
This optional Rspack plugin emits `divebell-chunks.json` for deeper code usage analysis. Basic Divebell memory commands do not require this plugin.
Downloads
1,168
Readme
@divebell/rspack-plugin
This optional Rspack plugin emits divebell-chunks.json for deeper code
usage analysis. Basic Divebell memory commands do not require this plugin.
import { DivebellChunkMapRspackPlugin } from "@divebell/rspack-plugin";
export default {
plugins: [new DivebellChunkMapRspackPlugin()]
};Keep JavaScript source maps in the same build output. Record the target page
with divebell coverage, then pass the exact build metadata path to the CLI:
divebell extensions add @divebell/extension-code-usage
divebell code-usage analyze \
--chunk-map /path/to/dist/divebell-chunks.json \
--coverage /tmp/first-screen.coverage.json \
--output /tmp/code-usage-report.jsonUse the artifacts from the exact deployed build when analyzing an online page.
If the Chunk Map is stored outside the build output, pass the build directory
with --assets.
