File tree Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import { environments } from "@dzcode.io/utils/dist/config/environment";
22import { defineConfig } from "@rsbuild/core" ;
33import { pluginReact } from "@rsbuild/plugin-react" ;
44import { readFileSync } from "fs" ;
5- import FaroSourceMapUploaderPlugin from "@grafana/faro-webpack-plugin" ;
65
76let stage = process . env . STAGE ;
87
2221
2322export 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} ) ;
You can’t perform that action at this time.
0 commit comments