File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ type LoaderOptions = {
13
13
* or edge-runtime code.
14
14
*/
15
15
export default function sdkMultiplexerLoader ( this : LoaderThis < LoaderOptions > , userCode : string ) : string {
16
- if ( ! userCode . includes ( '__SENTRY_SDK_MULTIPLEXER__ ' ) ) {
16
+ if ( ! userCode . includes ( '_SENTRY_SDK_MULTIPLEXER ' ) ) {
17
17
return userCode ;
18
18
}
19
19
Original file line number Diff line number Diff line change @@ -3,4 +3,8 @@ export * from './client';
3
3
// This file is the main entrypoint for non-Next.js build pipelines that use
4
4
// the package.json's "browser" field or the Edge runtime (Edge API routes and middleware)
5
5
6
- // __SENTRY_SDK_MULTIPLEXER__
6
+ /**
7
+ * This const serves no purpose besides being an identifier for this file that the SDK multiplexer loader can use to
8
+ * determine that this is in fact a file that wants to be multiplexed.
9
+ */
10
+ export const _SENTRY_SDK_MULTIPLEXER = true ;
Original file line number Diff line number Diff line change @@ -3,4 +3,8 @@ export * from './server';
3
3
4
4
// This file is the main entrypoint on the server and/or when the package is `require`d
5
5
6
- // __SENTRY_SDK_MULTIPLEXER__
6
+ /**
7
+ * This const serves no purpose besides being an identifier for this file that the SDK multiplexer loader can use to
8
+ * determine that this is in fact a file that wants to be multiplexed.
9
+ */
10
+ export const _SENTRY_SDK_MULTIPLEXER = true ;
You can’t perform that action at this time.
0 commit comments