We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I was trying out Vite on another project and ran into the following error:
template.js:38 Uncaught ReferenceError: process is not defined
which seems to occur with v4 of Vite. I just wanted to note that adding something like:
import replace from '@rollup/plugin-replace'; ... replace({ 'process.env.NODE_ENV': JSON.stringify( 'development' ) }),
to rollup.config.js helped. (Originally from https://blog.bitsrc.io/trying-rollup-for-react-applications-d3c2304d16bf.)
rollup.config.js
(Not sure if the above code is exactly right!)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I was trying out Vite on another project and ran into the following error:
which seems to occur with v4 of Vite. I just wanted to note that adding something like:
to
rollup.config.js
helped. (Originally from https://blog.bitsrc.io/trying-rollup-for-react-applications-d3c2304d16bf.)(Not sure if the above code is exactly right!)
The text was updated successfully, but these errors were encountered: