Closed AkashRajpurohit closed 1 year ago
Hey @AkashRajpurohit! 👋
tailwind-merge only outputs this code (source here)
var twMerge = createTailwindMerge(getDefaultConfig)
which should be correct.
The part in the middle
/*#__PURE__*/;!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3c9ff831-910b-4bcd-ae80-dc76a3e35d59",e._sentryDebugIdIdentifier="sentry-dbid-3c9ff831-910b-4bcd-ae80-dc76a3e35d59")}catch(e){}}();
seems to be injected by Sentry (you see Sentry-related variable names in it, like _sentryDebugIds
).
This is probably an issue with @sentry/vite-plugin
, I'd suggest to open an issue in that repo instead to fix it.
Closing this, will continue this on the sentry plugin repo 👍🏽
I am trying to setup sentry vite plugin for release tracking and sourcemaps data, but the build fails when I add config for it. Without it the build works fine.
Setup is like this
The build failure after the sourcemaps are uploaded and client build starts
The package versions are
I have confirmed that it only fails when tailwind-merge is present as deps and used, when I remove it then the build succeeds