Skip to content

fix: revert #6340, definePlugin tests, warning box#7174

Merged
patak-cat merged 3 commits intovitejs:mainfrom
dominikg:fix/define
Mar 4, 2022
Merged

fix: revert #6340, definePlugin tests, warning box#7174
patak-cat merged 3 commits intovitejs:mainfrom
dominikg:fix/define

Conversation

@dominikg
Copy link
Contributor

@dominikg dominikg commented Mar 4, 2022

Description

This #6340 introduced changes to the definePlugin that broke ecosystem-ci tests of 2.9-beta for svelte due to changes how it replaces import.meta.env.SSR

see https://discord.com/channels/804011606160703521/949170949117313085

Steps to take:

  • add a testsuite that ensures import.meta.env replacements are working as expected
  • rollback the og change pr to get them passing
  • discuss what kind of changes/improvements we want to make in 2.9

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.

@patak-cat patak-cat changed the title fix: definePlugin fix: revert #6340, definePlugin tests, warning box Mar 4, 2022
@patak-cat patak-cat merged commit 6cb0647 into vitejs:main Mar 4, 2022
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.

2 participants