Skip to content

Commit 07f54b2

Browse files
lforstmydea
andauthored
fix(esbuild): Invert warning about bundle: true (#542)
Co-authored-by: Francesco Novy <[email protected]>
1 parent 450f2a9 commit 07f54b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: packages/esbuild-plugin/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ function esbuildDebugIdInjectionPlugin(logger: Logger): UnpluginOptions {
5151

5252
esbuild: {
5353
setup({ initialOptions, onLoad, onResolve }) {
54-
if (initialOptions.bundle) {
54+
if (!initialOptions.bundle) {
5555
logger.warn(
56-
"Esbuild's `bundle: true` option is currently not supported! Esbuild will probably crash now. Sorry about that. If you need to upload sourcemaps with the `bundle` option, it is recommended to use Sentry CLI instead: https://docs.sentry.io/platforms/javascript/sourcemaps/uploading/cli/"
56+
"The Sentry esbuild plugin only supports esbuild with `bundle: true` being set in the esbuild build options. Esbuild will probably crash now. Sorry about that. If you need to upload sourcemaps without `bundle: true`, it is recommended to use Sentry CLI instead: https://docs.sentry.io/platforms/javascript/sourcemaps/uploading/cli/"
5757
);
5858
}
5959

0 commit comments

Comments
 (0)