File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
packages/integration-tests
fixtures/disabled-debug-id-injection Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ import { testIfNodeMajorVersionIsLessThan18 } from "../../utils/testIf";
6
6
7
7
function checkBundle ( bundlePath1 : string , bundlePath2 : string ) {
8
8
const process1Output = childProcess . execSync ( `node ${ bundlePath1 } ` , { encoding : "utf-8" } ) ;
9
- expect ( process1Output ) . toBe ( " undefined\n" ) ;
9
+ expect ( process1Output ) . toMatch ( / u n d e f i n e d / ) ;
10
10
11
11
const process2Output = childProcess . execSync ( `node ${ bundlePath2 } ` , { encoding : "utf-8" } ) ;
12
- expect ( process2Output ) . toBe ( " undefined\n" ) ;
12
+ expect ( process2Output ) . toMatch ( / u n d e f i n e d / ) ;
13
13
}
14
14
15
15
describe ( "should not inject debug IDs when `sourcemaps.disable` is `true`" , ( ) => {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import { sentryRollupPlugin } from "@sentry/rollup-plugin";
12
12
13
13
const [ NODE_MAJOR_VERSION ] = process . version . split ( "." ) . map ( Number ) as [ number ] ;
14
14
15
- type Bundlers = "webpack4" | "webpack5" | "esbuild" | "rollup" | "rollup4" | "vite" | "vite6" ;
15
+ type Bundlers = "webpack4" | "webpack5" | "esbuild" | "rollup" | "rollup4" | "vite" | "vite6" | string ;
16
16
17
17
export function createCjsBundles (
18
18
entrypoints : { [ name : string ] : string } ,
@@ -38,7 +38,7 @@ export function createCjsBundles(
38
38
} ) ;
39
39
}
40
40
41
- if ( NODE_MAJOR_VERSION >= 18 && plugins . length === 0 || plugins . includes ( "vite6" ) ) {
41
+ if ( ( NODE_MAJOR_VERSION >= 18 && plugins . length === 0 ) || plugins . includes ( "vite6" ) ) {
42
42
const vite6 = require ( "vite6" ) ;
43
43
void vite6 . build ( {
44
44
clearScreen : false ,
You can’t perform that action at this time.
0 commit comments