rollup-plugin-proposal-debug-id
v1.0.0
Published
Polyfill Rollup Plugin for the TC39 Source Map Debug ID Proposal
Readme
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
debugIdfield into generated source maps.
Attribution
Based on implmentation over at Sentry JavaScript Bundler Plugins.
