-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
feat: build.target: ['nodeXX']
ignore replace process.env
#8843
Conversation
✅ Deploy Preview for vite-docs-main canceled.
|
16721e1
to
2b75821
Compare
Perhaps we want to make the fix at
I don't think we've considered having special treatment for |
@bluwy Thanks for your reply, this is indeed an Electron specific scenario. In my project, I had to avoid the // 🚧 Use ['ENV_NAME'] avoid vite:define plugin
const url = `http://${process.env['VITE_DEV_SERVER_HOST']}:${process.env['VITE_DEV_SERVER_PORT']}` My project 👉 electron-vite/electron-vite-vue |
target='node'
ignore replace process.env
process.env
process.env
build.target: ['nodeXX']
ignore replace process.env
Yeah! It seems that |
Description
When I use Vite and explicitly specify that the build target is
node
(Electron App), I hope to bypass thedefinePlugin
Additional context
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).