Skip to content

Commit abb7689

Browse files
committed
refactor: remove FaroSourceMapUploaderPlugin configuration from rsbuild
1 parent ae86648 commit abb7689

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

web/rsbuild.config.ts

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { environments } from "@dzcode.io/utils/dist/config/environment";
22
import { defineConfig } from "@rsbuild/core";
33
import { pluginReact } from "@rsbuild/plugin-react";
44
import { readFileSync } from "fs";
5-
import FaroSourceMapUploaderPlugin from "@grafana/faro-webpack-plugin";
65

76
let stage = process.env.STAGE;
87

@@ -22,20 +21,6 @@ try {
2221

2322
export default defineConfig({
2423
plugins: [pluginReact()],
25-
tools: {
26-
webpack: {
27-
plugins: [
28-
new FaroSourceMapUploaderPlugin({
29-
appName: "dzcode",
30-
endpoint: "https://faro-api-prod-eu-west-2.grafana.net/faro/api/v1",
31-
appId: "2897",
32-
stackId: "1236993",
33-
apiKey: process.env.GRAFANA_SOURCEMAP_TOKEN!,
34-
gzipContents: true,
35-
}),
36-
],
37-
},
38-
},
3924
source: {
4025
alias: {
4126
src: "./src",
@@ -67,5 +52,9 @@ export default defineConfig({
6752
svg: `w/${bundleInfo.version}/svg`,
6853
wasm: `w/${bundleInfo.version}/wasm`,
6954
},
55+
sourceMap: {
56+
js: "source-map",
57+
css: true,
58+
},
7059
},
7160
});

0 commit comments

Comments
 (0)