1.0.0 • Published 7 months ago
rollup-plugin-proposal-debug-id v1.0.0
rollup-plugin-proposal-debug-id
Polyfill Rollup Plugin for the TC39 Source Map Debug ID Proposal.
Usage
// rollup.config.mjs
import { defineConfig } from "rollup";
import { debugIdProposalPlugin } from "rollup-plugin-proposal-debug-id";
export default defineConfig({
// other options ...
plugins: [debugIdProposalPlugin()], // put plugin as late as possible
});
Effects
- Exposes global function property
getDebugIdSnippet(url)
that allows to extract a Debug Id for a paticular url. - Inserts a
debugId
field into generated source maps.
Attribution
Based on implmentation over at Sentry JavaScript Bundler Plugins.
1.0.0
7 months ago