Skip to content

Commit

Permalink
add additional check
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiller1990 committed Jul 14, 2022
1 parent 86653c7 commit 58c4795
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion npm/vite-dev-server/src/plugins/react18.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ export const React18 = (projectRoot: string): Plugin => {
return
}

const isCypressReact = id.includes('cypress-react.esm-bundler.js')
// TODO: Why do we need to check against cypress-react (dev mode, system tests)
// AND cypress_react (production)?
const isCypressReact = ['cypress-react.esm-bundler.js', 'cypress_react.js'].includes(id)

if (isCypressReact) {
// remove problematic code via transform!
Expand Down

3 comments on commit 58c4795

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 58c4795 Jul 14, 2022

Choose a reason for hiding this comment

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

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.3.1/linux-x64/lmiller/21381-react-18-with-ignore-58c47950183b9b45bc6f0557c234f4a2318b24b5/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 58c4795 Jul 14, 2022

Choose a reason for hiding this comment

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

Circle has built the darwin arm64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.3.1/darwin-arm64/lmiller/21381-react-18-with-ignore-58c47950183b9b45bc6f0557c234f4a2318b24b5/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 58c4795 Jul 14, 2022

Choose a reason for hiding this comment

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

Circle has built the darwin x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.3.1/darwin-x64/lmiller/21381-react-18-with-ignore-58c47950183b9b45bc6f0557c234f4a2318b24b5/cypress.tgz

Please sign in to comment.