Skip to content

Add out of the box support for UXP Debugger for VSCode #51

@jardicc

Description

@jardicc

Hi, I created UXP Debugger for VSCode. https://marketplace.visualstudio.com/items?itemName=JaroslavBereza.uxpdebugger&ssr=false#overview

I tried it with Bolt and found out that if this should work by default there are few changes to be made:

  1. Bolt "generateBundle()" breaks the sourcemaps #50
  2. On rebuild, Bolt will delete the whole directory with the plugin and create it again. The thing is UXP Debugger expects .uxprc file to be located together with manifest.json and file content will change on every plugin load via UDT. So to fix it I would need to exclude this file from deletion.
  3. UXP debugger now supports only inlined source maps. So in vite.config.ts would be sourcemap: mode && ["dev", "build"].includes(mode) ? "inline" : false, instead of sourcemap: mode && ["dev", "build"].includes(mode) ? true : false,

I think with these changes, it would provide a really good developer experience.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions