Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
Add record for source maps to manifest in development mode (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathankap authored and Kayla Fitzsimmons committed Sep 14, 2024
1 parent 0548b5c commit af849f2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/mocksi-lite-next/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ export default defineConfig(({ mode }) => {
case "development":
manifest.name = "[Development] Mocksi Lite";
manifest.key = DEV_UNPACKED_KEY;

// add permissions to view source map
manifest.web_accessible_resources.push({
matches: ["<all_urls>"],
resources: ["assets/*.js.map"],
})

break;
case "staging":
manifest.name = "[Staging] Mocksi Lite";
Expand Down

0 comments on commit af849f2

Please sign in to comment.