Skip to content

Do not require react nor react-dom #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ehmicky opened this issue Nov 19, 2020 · 1 comment · Fixed by #60
Closed

Do not require react nor react-dom #59

ehmicky opened this issue Nov 19, 2020 · 1 comment · Fixed by #60
Assignees
Labels
proj/non/next-on-netlify-enterprise type: bug code to address defects in shipped code

Comments

@ehmicky
Copy link

ehmicky commented Nov 19, 2020

We currently use require('next') to check whether the website is using Next.js.
However, this requires react and react-dom to also be available.
Doing require('next/package.json') instead should solve this. It's also faster.

@ehmicky ehmicky added type: bug code to address defects in shipped code proj/non/next-on-netlify-enterprise labels Nov 19, 2020
@ehmicky ehmicky self-assigned this Nov 19, 2020
@ehmicky
Copy link
Author

ehmicky commented Nov 19, 2020

Done in #60

serhalp pushed a commit that referenced this issue Apr 5, 2024
Co-authored-by: token-generator-app[bot] <82042599+token-generator-app[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proj/non/next-on-netlify-enterprise type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant