From 024ac4dae4978c96cb79199346d298c9f31d6565 Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Wed, 1 Jul 2026 10:24:35 +0200 Subject: [PATCH 1/3] fix(build/js): Add subpath export shims for legacy bundlers --- javascript/sentry-conventions/package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/javascript/sentry-conventions/package.json b/javascript/sentry-conventions/package.json index df9a1db4..0410ab88 100644 --- a/javascript/sentry-conventions/package.json +++ b/javascript/sentry-conventions/package.json @@ -31,7 +31,11 @@ "node": ">=14" }, "files": [ - "dist" + "dist", + "attributes.js", + "attributes.d.ts", + "op.js", + "op.d.ts" ], "repository": { "type": "git", From e88ae80bc13a77dd26fe841a93835afcbdbf790a Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Wed, 1 Jul 2026 10:29:26 +0200 Subject: [PATCH 2/3] actually add the files --- javascript/sentry-conventions/attributes.d.ts | 3 +++ javascript/sentry-conventions/attributes.js | 3 +++ javascript/sentry-conventions/op.d.ts | 3 +++ javascript/sentry-conventions/op.js | 3 +++ 4 files changed, 12 insertions(+) create mode 100644 javascript/sentry-conventions/attributes.d.ts create mode 100644 javascript/sentry-conventions/attributes.js create mode 100644 javascript/sentry-conventions/op.d.ts create mode 100644 javascript/sentry-conventions/op.js diff --git a/javascript/sentry-conventions/attributes.d.ts b/javascript/sentry-conventions/attributes.d.ts new file mode 100644 index 00000000..bbd98ea8 --- /dev/null +++ b/javascript/sentry-conventions/attributes.d.ts @@ -0,0 +1,3 @@ +// This file is a compatibility shim for TypeScript compilers that do not +// support the package.json `exports` field for resolving subpath exports. +export * from './dist/attributes.d.ts'; diff --git a/javascript/sentry-conventions/attributes.js b/javascript/sentry-conventions/attributes.js new file mode 100644 index 00000000..833ffe37 --- /dev/null +++ b/javascript/sentry-conventions/attributes.js @@ -0,0 +1,3 @@ +// This file is a compatibility shim for bundlers (e.g. webpack 4) that do not +// support the package.json `exports` field for resolving subpath exports. +module.exports = require('./dist/attributes.cjs'); diff --git a/javascript/sentry-conventions/op.d.ts b/javascript/sentry-conventions/op.d.ts new file mode 100644 index 00000000..1b7fc099 --- /dev/null +++ b/javascript/sentry-conventions/op.d.ts @@ -0,0 +1,3 @@ +// This file is a compatibility shim for TypeScript compilers that do not +// support the package.json `exports` field for resolving subpath exports. +export * from './dist/op.d.ts'; diff --git a/javascript/sentry-conventions/op.js b/javascript/sentry-conventions/op.js new file mode 100644 index 00000000..0574d4ba --- /dev/null +++ b/javascript/sentry-conventions/op.js @@ -0,0 +1,3 @@ +// This file is a compatibility shim for bundlers (e.g. webpack 4) that do not +// support the package.json `exports` field for resolving subpath exports. +module.exports = require('./dist/op.cjs'); From 87e14aca02d2cfe0b6c80c54fd43de76564cf1f7 Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Wed, 1 Jul 2026 10:54:02 +0200 Subject: [PATCH 3/3] remove extension for d.ts shims --- javascript/sentry-conventions/attributes.d.ts | 2 +- javascript/sentry-conventions/op.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/sentry-conventions/attributes.d.ts b/javascript/sentry-conventions/attributes.d.ts index bbd98ea8..be53ef7b 100644 --- a/javascript/sentry-conventions/attributes.d.ts +++ b/javascript/sentry-conventions/attributes.d.ts @@ -1,3 +1,3 @@ // This file is a compatibility shim for TypeScript compilers that do not // support the package.json `exports` field for resolving subpath exports. -export * from './dist/attributes.d.ts'; +export * from './dist/attributes'; diff --git a/javascript/sentry-conventions/op.d.ts b/javascript/sentry-conventions/op.d.ts index 1b7fc099..b8030bd4 100644 --- a/javascript/sentry-conventions/op.d.ts +++ b/javascript/sentry-conventions/op.d.ts @@ -1,3 +1,3 @@ // This file is a compatibility shim for TypeScript compilers that do not // support the package.json `exports` field for resolving subpath exports. -export * from './dist/op.d.ts'; +export * from './dist/op';