Skip to content

Commit c2daf58

Browse files
committed
ref(remix)!: Migrate import hook to makeOrchestrionLoader
Switch the `@sentry/remix/import` loader to the orchestrion-based `makeOrchestrionLoader` and drop the obsolete `./loader` export.
1 parent 679c996 commit c2daf58

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

MIGRATION.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,7 @@ Sentry.init({
418418
- (AWS Lambda) The `@sentry/aws-serverless/loader` entry point was removed. Use `node --import @sentry/aws-serverless/import` instead.
419419
- (Google Cloud) The `@sentry/google-cloud-serverless/loader` entry point was removed. Use `node --import @sentry/google-cloud-serverless/import` instead.
420420
- (Next.js) The `@sentry/nextjs/loader` entry point was removed. Use `node --import @sentry/nextjs/import` instead.
421+
- (Remix) The `@sentry/remix/loader` entry point was removed. Use `node --import @sentry/remix/import` instead.
421422
- (Fastify) The deprecated `setShouldHandleError` method was removed.
422423
- (AWS Lambda) The deprecated `disableAwsContextPropagation` option was removed. It no longer had any effect.
423424
- (AWS Lambda) The deprecated `startTrace` option was removed. It no longer had any effect; to disable tracing, set `tracesSampleRate` to `0`.

packages/remix/package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@
4646
"import": {
4747
"default": "./build/import-hook.mjs"
4848
}
49-
},
50-
"./loader": {
51-
"import": {
52-
"default": "./build/loader-hook.mjs"
53-
}
5449
}
5550
},
5651
"publishConfig": {

packages/remix/rollup.npm.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { makeBaseNPMConfig, makeNPMConfigVariants, makeOtelLoaders } from '@sentry-internal/rollup-utils';
1+
import { makeBaseNPMConfig, makeNPMConfigVariants, makeOrchestrionLoader } from '@sentry-internal/rollup-utils';
22

33
// We rely on esbuild's defaults for JSX (`jsx: 'transform'` = classic runtime, no
44
// __self/__source attributes). React 19 prefers the new automatic transform, but switching
@@ -23,5 +23,5 @@ export default [
2323
},
2424
}),
2525
),
26-
...makeOtelLoaders('./build', 'sentry-node'),
26+
...makeOrchestrionLoader('./build'),
2727
];

0 commit comments

Comments
 (0)