@@ -7,8 +7,8 @@ import { makeBaseNPMConfig, makeNPMConfigVariants, makeOtelLoaders } from '@sent
77// also covers CJS-internal `require()` calls — no separate `--require` hook is
88// needed. We pass it through rollup only to copy it into `build/` at the path
99// the package.json `exports` map expects; `external: /.*/` keeps every import
10- // (e.g. `@sentry/node /orchestrion/config `) as a runtime resolution against the
11- // installed package.
10+ // (e.g. `@sentry-internal/server-utils /orchestrion/import-hook `) as a runtime
11+ // resolution against the installed package.
1212const orchestrionRuntimeHooks = [
1313 defineConfig ( {
1414 input : 'src/orchestrion/runtime/import-hook.mjs' ,
@@ -22,18 +22,11 @@ export default [
2222 ...orchestrionRuntimeHooks ,
2323 ...makeNPMConfigVariants (
2424 makeBaseNPMConfig ( {
25- // `src/orchestrion/config.ts` and `src/orchestrion/bundler/vite.ts` are
26- // loaded via dedicated subpath exports (`@sentry/node/orchestrion/config`,
27- // `@sentry/node/orchestrion/vite`) — neither is reachable from `src/index.ts`,
28- // so we list them as separate entrypoints to guarantee they end up in
29- // build/esm and build/cjs.
30- entrypoints : [
31- 'src/index.ts' ,
32- 'src/init.ts' ,
33- 'src/preload.ts' ,
34- 'src/orchestrion/config.ts' ,
35- 'src/orchestrion/bundler/vite.ts' ,
36- ] ,
25+ // `src/orchestrion/bundler/vite.ts` is loaded via the dedicated
26+ // `@sentry/node/orchestrion/vite` subpath export and is not reachable from
27+ // `src/index.ts`, so we list it as a separate entrypoint to guarantee it
28+ // ends up in build/esm and build/cjs.
29+ entrypoints : [ 'src/index.ts' , 'src/init.ts' , 'src/preload.ts' , 'src/orchestrion/bundler/vite.ts' ] ,
3730 packageSpecificConfig : {
3831 external : [ / ^ @ s e n t r y \/ o p e n t e l e m e t r y / ] ,
3932 output : {
0 commit comments