Skip to content

Comments

fix: stop breaking data URLs with namespace queries#756

Open
ConnorBerghoffer wants to merge 1 commit intoprivatenumber:masterfrom
ConnorBerghoffer:fix/data-url-namespace
Open

fix: stop breaking data URLs with namespace queries#756
ConnorBerghoffer wants to merge 1 commit intoprivatenumber:masterfrom
ConnorBerghoffer:fix/data-url-namespace

Conversation

@ConnorBerghoffer
Copy link

Data URLs can't handle query parameters, but tsx was adding ?tsx-namespace to them anyway which caused Invalid URL errors in Node. Now we skip the namespace parameter entirely when the URL starts with data:.

Fixes #750

Data URLs can't handle query parameters, but tsx was adding ?tsx-namespace to them anyway which caused Invalid URL errors in Node. Now we skip the namespace parameter entirely when the URL starts with 'data:'.

Fixes privatenumber#750
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.

tsImport from tsx/esm/api adds ?tsx-namespace to data urls, which causes Invalid URL

1 participant