Skip to content

Commit 367bffb

Browse files
committed
rename stuff
1 parent 7cc99cd commit 367bffb

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

packages/react-router/src/vite/makeCustomSentryVitePlugins.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export async function makeCustomSentryVitePlugins(options: SentryReactRouterPlug
3838
return [
3939
'sentry-telemetry-plugin',
4040
'sentry-vite-release-injection-plugin',
41-
'sentry-release-management-plugin',
4241
'sentry-vite-debug-id-injection-plugin',
4342
].includes(plugin.name);
4443
}),

packages/react-router/src/vite/sourceMaps.ts renamed to packages/react-router/src/vite/makeEnableSourceMapsPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { SentryReactRouterPluginOptions } from './types';
55
/**
66
* A Sentry plugin for React Router to enable "hidden" source maps if they are unset.
77
*/
8-
export function makeEnableSourceMapsVitePlugin(options: SentryReactRouterPluginOptions): Plugin {
8+
export function makeEnableSourceMapsPlugin(options: SentryReactRouterPluginOptions): Plugin {
99
return {
1010
name: 'sentry-react-router-update-source-map-setting',
1111
apply: 'build',

packages/react-router/src/vite/plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { ConfigEnv } from 'vite';
22
import { type Plugin } from 'vite';
33
import { makeCustomSentryVitePlugins } from './makeCustomSentryVitePlugins';
4-
import { makeEnableSourceMapsVitePlugin } from './sourceMaps';
4+
import { makeEnableSourceMapsPlugin } from './makeEnableSourceMapsPlugin';
55
import type { SentryReactRouterPluginOptions } from './types';
66

77
/**
@@ -18,7 +18,7 @@ export async function sentryReactRouter(
1818
const plugins: Plugin[] = [];
1919

2020
if (process.env.NODE_ENV !== 'development' && config.command === 'build') {
21-
plugins.push(makeEnableSourceMapsVitePlugin(options));
21+
plugins.push(makeEnableSourceMapsPlugin(options));
2222
plugins.push(...(await makeCustomSentryVitePlugins(options)));
2323
}
2424

packages/react-router/test/vite/sourceMaps.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { SentryVitePluginOptions } from '@sentry/vite-plugin';
22
import { beforeEach, describe, expect, it, vi } from 'vitest';
3-
import { getUpdatedSourceMapSettings, makeEnableSourceMapsVitePlugin } from '../../src/vite/sourceMaps';
3+
import { getUpdatedSourceMapSettings, makeEnableSourceMapsPlugin } from '../../src/vite/makeEnableSourceMapsPlugin';
44

55
const mockedSentryVitePlugin = {
66
name: 'sentry-vite-debug-id-upload-plugin',
@@ -22,9 +22,9 @@ beforeEach(() => {
2222
vi.clearAllMocks();
2323
});
2424

25-
describe('makeEnableSourceMapsVitePlugin()', () => {
25+
describe('makeEnableSourceMapsPlugin()', () => {
2626
it('returns a plugin to set `sourcemaps` to `true`', () => {
27-
const enableSourceMapPlugin = makeEnableSourceMapsVitePlugin({});
27+
const enableSourceMapPlugin = makeEnableSourceMapsPlugin({});
2828

2929
expect(enableSourceMapPlugin?.name).toEqual('sentry-react-router-update-source-map-setting');
3030
expect(enableSourceMapPlugin?.apply).toEqual('build');

0 commit comments

Comments
 (0)