@debugids/rolldown
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

@debugids/rolldown

npm version

Injects Debug IDs into source and sourcemaps when using Rolldown.

Rolldown v0.14.0 and later support debug IDs natively without any plugins:

rolldown.config.mjs

export default {
  input: "./src/main.js",
  output: {
    dir: "dist",
    format: "esm",
    sourcemap: true,
    sourcemapDebugIds: true,
  },
};

For older versions of Rolldown, you can use this plugin to inject debug IDs:

rolldown.config.mjs

import debugIds from "@debugids/rolldown";

export default {
  input: "./src/main.js",
  plugins: [debugIds()],
  output: {
    dir: "dist",
    format: "esm",
    sourcemap: true,
  },
};

Readme

Keywords

none

Package Sidebar

Install

npm i @debugids/rolldown

Weekly Downloads

5

Version

0.1.3

License

MIT

Unpacked Size

3.71 kB

Total Files

12

Last publish

Collaborators

  • aprasad-sentry