Skip to content
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

Can not use react-scan directly through js snippet or proxy injection now in newly version #155

Open
arronKler opened this issue Dec 20, 2024 · 0 comments
Assignees

Comments

@arronKler
Copy link

I use the script below to use react-scan. It doesn't work today.
I notice that the newly version of react-scan which is 0.0.51 will detect react lib type and forbid to start in production mode react.
But, if I use rspack-like bundler which will compile whole project which means it's always production type of react.

(() => {
    const script = document.createElement("script");
    script.src = "https://unpkg.com/react-scan/dist/auto.global.js"
    document.head.appendChild(script)
})()

So, for my case, I think I need the auto script always pass dangerouslyForceRunInProduction.
Or may be you can provide more flexible options

@arronKler arronKler changed the title Can not use react-scan directly through js snippet or proxy inject now in newly version Can not use react-scan directly through js snippet or proxy injection now in newly version Dec 20, 2024
@RobPruzan RobPruzan self-assigned this Dec 22, 2024
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

No branches or pull requests

2 participants