Skip to content

Conversation

@rafek1241
Copy link
Owner

@rafek1241 rafek1241 commented Mar 13, 2025

Fixes #7

Refactor Rollup configuration to fix TypeScript debugging with source maps.

  • Add rollup-plugin-chrome-extension to the list of imports in rollup.config.js.
  • Update the createConfig function in rollup.config.js to include the chromeExtension plugin.
  • Set the sourcemap option to true for non-production builds in rollup.config.js.
  • Update the importScripts statement in public/background.js to include the correct path for source maps.
  • Add the sourceMap and inlineSources options to the compilerOptions section in tsconfig.json.

For more details, open the Copilot Workspace session.

Fixes #7

Refactor Rollup configuration to fix TypeScript debugging with source maps.

* Add `rollup-plugin-chrome-extension` to the list of imports in `rollup.config.js`.
* Update the `createConfig` function in `rollup.config.js` to include the `chromeExtension` plugin.
* Set the `sourcemap` option to `true` for non-production builds in `rollup.config.js`.
* Update the `importScripts` statement in `public/background.js` to include the correct path for source maps.
* Add the `sourceMap` and `inlineSources` options to the `compilerOptions` section in `tsconfig.json`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/rafek1241/conventional-comments/issues/7?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Debugging of typescript files not working

2 participants