From 416b598c8e67f85170af691732c36afc7e44c0aa Mon Sep 17 00:00:00 2001 From: VampireChicken12 Date: Sat, 7 Oct 2023 02:17:47 -0400 Subject: [PATCH] build: inline sourcemap --- src/utils/plugins/build-content-script.ts | 2 +- vite.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/plugins/build-content-script.ts b/src/utils/plugins/build-content-script.ts index a8f6f236..74bbd5cf 100644 --- a/src/utils/plugins/build-content-script.ts +++ b/src/utils/plugins/build-content-script.ts @@ -43,7 +43,7 @@ export default function buildContentScript(): PluginOption { plugins: [cssInjectedByJsPlugin()], build: { outDir: resolve(outDir, browser.name), - sourcemap: process.env.__DEV__ === "true", + sourcemap: process.env.__DEV__ === "true" ? "inline" : false, emptyOutDir: false, rollupOptions: { input: _package, diff --git a/vite.config.ts b/vite.config.ts index 5823d692..a51ad3f6 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -46,7 +46,7 @@ export default function build() { plugins: [react(), makeManifest(), buildContentScript(), copyPublic(), copyBuild(), makeReleaseZips()], build: { outDir: resolve(outDir, "temp"), - sourcemap: process.env.__DEV__ === "true", + sourcemap: process.env.__DEV__ === "true" ? "inline" : false, emptyOutDir: false, rollupOptions: { input: {