Skip to content

Commit

Permalink
Include lib sourcemaps in bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Jun 26, 2024
1 parent 460e023 commit eddfe99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { defineConfig, loadEnv } from "vite";
import react from "@vitejs/plugin-react";
import eslint from "vite-plugin-eslint";
import istanbul from "vite-plugin-istanbul";
import sourcemaps from "rollup-plugin-sourcemaps";
import { ViteReactSourcemapsPlugin } from "@acemarke/react-prod-sourcemaps";

export default defineConfig(({ command, mode }) => {
Expand All @@ -27,6 +28,7 @@ export default defineConfig(({ command, mode }) => {
exclude: ["node_modules", "cypress", "dist"],
forceBuildInstrument: true,
}),
sourcemaps(),
ViteReactSourcemapsPlugin({ debug: false, preserve: false }),
],
// to get aws amplify to work with vite
Expand Down

0 comments on commit eddfe99

Please sign in to comment.