File tree 3 files changed +36
-1
lines changed
3 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 113
113
"msw-storybook-addon" : " ^2.0.4" ,
114
114
"postcss" : " ^8.5.3" ,
115
115
"prettier" : " 3.5.3" ,
116
+ "rollup-plugin-sourcemaps2" : " ^0.5.0" ,
116
117
"storybook" : " 8.6.8" ,
117
118
"stylelint" : " 16.16.0" ,
118
119
"stylelint-config-standard" : " ^37.0.0" ,
Original file line number Diff line number Diff line change 1
1
import react from '@vitejs/plugin-react' ;
2
2
import fs from 'fs' ;
3
3
import path from 'path' ;
4
+ import sourcemaps from 'rollup-plugin-sourcemaps2' ;
4
5
import { loadEnv } from 'vite' ;
5
6
import svgr from 'vite-plugin-svgr' ;
6
7
import { defineConfig } from 'vitest/config' ;
@@ -92,7 +93,7 @@ export default ({ mode }) => {
92
93
93
94
} ) ,
94
95
svgr ( ) ,
95
- excludeMsw ( )
96
+ excludeMsw ( ) ,
96
97
] ,
97
98
build : {
98
99
// Relative to the root
@@ -102,6 +103,7 @@ export default ({ mode }) => {
102
103
external : [
103
104
"mockServiceWorker.js"
104
105
] ,
106
+ plugins : [ sourcemaps ( { exclude : / @ s e n t r y / } ) ] ,
105
107
} ,
106
108
} ,
107
109
test : {
Original file line number Diff line number Diff line change @@ -5483,6 +5483,22 @@ __metadata:
5483
5483
languageName: node
5484
5484
linkType: hard
5485
5485
5486
+ "@rollup/pluginutils@npm:5.1.4":
5487
+ version: 5.1.4
5488
+ resolution: "@rollup/pluginutils@npm:5.1.4"
5489
+ dependencies:
5490
+ "@types/estree": "npm:^1.0.0"
5491
+ estree-walker: "npm:^2.0.2"
5492
+ picomatch: "npm:^4.0.2"
5493
+ peerDependencies:
5494
+ rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0
5495
+ peerDependenciesMeta:
5496
+ rollup:
5497
+ optional: true
5498
+ checksum: 10/598f628988af25541a9a6c6ef154aaf350f8be3238884e500cc0e47138684071abe490563c953f9bda9e8b113ecb1f99c11abfb9dbaf4f72cdd62e257a673fa3
5499
+ languageName: node
5500
+ linkType: hard
5501
+
5486
5502
"@rollup/pluginutils@npm:^4.2.0":
5487
5503
version: 4.2.1
5488
5504
resolution: "@rollup/pluginutils@npm:4.2.1"
@@ -13694,6 +13710,7 @@ __metadata:
13694
13710
react: "npm:19.0.0"
13695
13711
react-dom: "npm:19.0.0"
13696
13712
react-router: "npm:7.2.0"
13713
+ rollup-plugin-sourcemaps2: "npm:^0.5.0"
13697
13714
storybook: "npm:8.6.8"
13698
13715
stylelint: "npm:16.16.0"
13699
13716
stylelint-config-standard: "npm:^37.0.0"
@@ -16528,6 +16545,21 @@ __metadata:
16528
16545
languageName: node
16529
16546
linkType: hard
16530
16547
16548
+ "rollup-plugin-sourcemaps2@npm:^0.5.0":
16549
+ version: 0.5.0
16550
+ resolution: "rollup-plugin-sourcemaps2@npm:0.5.0"
16551
+ dependencies:
16552
+ "@rollup/pluginutils": "npm:5.1.4"
16553
+ peerDependencies:
16554
+ "@types/node": ">=18.0.0"
16555
+ rollup: ">=4"
16556
+ peerDependenciesMeta:
16557
+ "@types/node":
16558
+ optional: true
16559
+ checksum: 10/9b443c4663113c575cb508f549d27cd363e82e75726fc0a317e49ed1a8fd2cf9a12cedc6feb585d6f78c1c7dd042d7c11e9edc31ef15346bdde03a5998e7b459
16560
+ languageName: node
16561
+ linkType: hard
16562
+
16531
16563
"rollup@npm:^4.23.0":
16532
16564
version: 4.28.0
16533
16565
resolution: "rollup@npm:4.28.0"
You can’t perform that action at this time.
0 commit comments