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: {