File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/bundler-plugin-core/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -193,6 +193,10 @@ const unplugin = createUnplugin<Options>((options, unpluginMetaContext) => {
193193 transformInclude ( id ) {
194194 logger . debug ( 'Called "transformInclude":' , { id } ) ;
195195
196+ if ( id . includes ( "sentry-release-injection-file" ) ) {
197+ return true ;
198+ }
199+
196200 if ( id . match ( / \\ n o d e _ m o d u l e s \\ | \/ n o d e _ m o d u l e s \/ / ) ) {
197201 return false ; // never transform 3rd party modules
198202 }
@@ -201,10 +205,6 @@ const unplugin = createUnplugin<Options>((options, unpluginMetaContext) => {
201205 // a windows style path to `releaseInjectionTargets`
202206 const normalizedId = path . normalize ( id ) ;
203207
204- if ( id . includes ( "sentry-release-injection-file" ) ) {
205- return true ;
206- }
207-
208208 if ( internalOptions . releaseInjectionTargets ) {
209209 // If there's an `releaseInjectionTargets` option transform (ie. inject the release varible) when the file path matches the option.
210210 if ( typeof internalOptions . releaseInjectionTargets === "function" ) {
You can’t perform that action at this time.
0 commit comments