Skip to content

fix(rollup-plugin-import-meta-assets): fix source map when path has a dynamic var#3040

Merged
bashmish merged 1 commit intomasterfrom
fix/import-meta-assets-source-maps
Mar 9, 2026
Merged

fix(rollup-plugin-import-meta-assets): fix source map when path has a dynamic var#3040
bashmish merged 1 commit intomasterfrom
fix/import-meta-assets-source-maps

Conversation

@bashmish
Copy link
Member

@bashmish bashmish commented Mar 9, 2026

What I did

  1. fix source map when path has a dynamic var

Source maps were broken for all lines that followed the injected function __variableDynamicURLRuntime.

@changeset-bot
Copy link

changeset-bot bot commented Mar 9, 2026

🦋 Changeset detected

Latest commit: 89d66fb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@web/rollup-plugin-import-meta-assets Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

"compilerOptions": {
"module": "commonjs",
"module": "node16",
"moduleResolution": "node16",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was needed to be able to resolve correctly the imports from "@jridgewell/remapping"

@bashmish bashmish merged commit cce7153 into master Mar 9, 2026
7 of 9 checks passed
@bashmish bashmish deleted the fix/import-meta-assets-source-maps branch March 9, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant