rollup-plugin-proposal-debug-id
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i rollup-plugin-proposal-debug-id

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

23.2 kB

Total Files

8

Last publish

Collaborators

  • lforst