Skip to content

fix(create-vite): add rel="noreferrer" to elements with target="_blank"#10675

Merged
patak-cat merged 1 commit into
vitejs:mainfrom
oekazuma:create-svelte-add-noreferrer
Oct 30, 2022
Merged

fix(create-vite): add rel="noreferrer" to elements with target="_blank"#10675
patak-cat merged 1 commit into
vitejs:mainfrom
oekazuma:create-svelte-add-noreferrer

Conversation

@oekazuma

Copy link
Copy Markdown
Contributor

Description

Fixed a warning that occurred when using <a target="_blank"> without rel="noreferrer" due to a change in sveltejs/svelte#6188 released in Svelte v3.52.0.

Additional context


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following

  • Read the Contributing Guidelines.
  • Read the Pull Request Guidelines and follow the Commit Convention.
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • Ideally, include relevant tests that fail without this PR but pass with it.

@haoqunjiang

Copy link
Copy Markdown
Member

Let's hold this for a while because this issue is still being discussed in the svelte repo and may be reverted: sveltejs/svelte#6289 (comment)

@oekazuma

oekazuma commented Oct 29, 2022

Copy link
Copy Markdown
Contributor Author

Yes, it is possible that it will eventually return to normal, but if it does not return to normal immediately, this response should be merged.

It is obviously noise to see this warning on a project that has just been initially set up.
warning-image

If you plan to revert back in Svelte 4, it will be after next year as far as I know.
ref: sveltejs/svelte#6289 (comment)

@haoqunjiang

Copy link
Copy Markdown
Member

Thanks for the information.

So, even though the default template created by Vite does not support IE 11, the svelte compiler does by default, and there seems to be no easy way to turn off this warning…

Then I think we have to accept this workaround.

@patak-cat patak-cat merged commit e8eb67a into vitejs:main Oct 30, 2022
@oekazuma oekazuma deleted the create-svelte-add-noreferrer branch October 30, 2022 16:02
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.

3 participants