-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(nitro-utils): Export Rollup Plugin wrapServerEntryWithDynamicImport
#14176
Conversation
b7aba48
to
21d30b6
Compare
packages/nitro-utils/src/rollupPlugins/wrapServerEntryWithDynamicImport.ts
Outdated
Show resolved
Hide resolved
packages/nitro-utils/src/rollupPlugins/wrapServerEntryWithDynamicImport.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one question but otherwise good to go from my end! Full disclosure: I'm not completely familiar with the rollup plugin details but it looks fine from my perspective. I think the package is correctly configured to not be published or cause issues while publishing.
packages/nitro-utils/README.md
Outdated
# Sentry Utilities for Nitro-based SDKs | ||
|
||
[![npm version](https://img.shields.io/npm/v/@sentry-internal/nitro-utils.svg)](https://www.npmjs.com/package/@sentry-internal/nitro-utils) | ||
[![npm dm](https://img.shields.io/npm/dm/@sentry-internal/nitro-utils.svg)](https://www.npmjs.com/package/@sentry-internal/nitro-utils) | ||
[![npm dt](https://img.shields.io/npm/dt/@sentry-internal/nitro-utils.svg)](https://www.npmjs.com/package/@sentry-internal/nitro-utils) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super-l: As long as we don't publish this package, these badges will yield a 404 but that's fine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, removed.
packages/nitro-utils/package.json
Outdated
"@sentry/core": "8.36.0", | ||
"@sentry/types": "8.36.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
m: Does this package actually depend on core and types? I didn't see an import in the source files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, doesn't depend on either. Removed.
export default makeNPMConfigVariants( | ||
makeBaseNPMConfig({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
l: Maybe one more question: Do we need a CJS version of this or is ESM enough? If we don't need CJS, we can configure the build to only emit ESM. In this case, we should also adjust the exports in package.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESM should be enough in Nitro 👍
3c908f4
to
73150d2
Compare
ab1ccb3
to
4063dee
Compare
bd3b43b
to
53552cf
Compare
9fc213e
to
9b1ceec
Compare
9b1ceec
to
dcad00f
Compare
packages/nitro-utils/package.json
Outdated
@@ -39,7 +39,6 @@ | |||
"access": "public" | |||
}, | |||
"dependencies": { | |||
"@sentry/types": "8.37.1", | |||
"@sentry/utils": "8.37.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might need @sentry/core
here because of #14431
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yea, good catch!
Co-authored-by: Andrei <168741329+andreiborza@users.noreply.github.com>
Closed in favor of making two PRs:
|
Creates an internal package
@sentry-internal/nitro-utils
which exports the Rollup plugin which is currently used in SolidStart and Nuxt.