From 108dff9d1ce0dcd5d267de5815128172f36d2769 Mon Sep 17 00:00:00 2001 From: Tim Fish Date: Wed, 13 Nov 2024 13:49:42 +0000 Subject: [PATCH] feat: Document Rollup native support --- packages/rollup/README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/packages/rollup/README.md b/packages/rollup/README.md index 6a9fa3b..748bbad 100644 --- a/packages/rollup/README.md +++ b/packages/rollup/README.md @@ -4,6 +4,24 @@ Injects Debug IDs into source and sourcemaps when using Rollup. +Rollup v4.25.0 and later support debug IDs natively without any plugins: + +`rollup.config.mjs` + +```ts +export default { + input: "./src/main.js", + output: { + dir: "dist", + format: "esm", + sourcemap: true, + sourcemapDebugIds: true, + }, +}; +``` + +For older versions of Rollup, you can use this plugin to inject debug IDs: + `rollup.config.mjs` ```ts