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

When vite define contains process.env: xx, process polyfill will fail #71

Closed
winixt opened this issue Jan 11, 2024 · 2 comments
Closed
Labels
missing reproduction This issue does not provide a reproducible example of the problem.

Comments

@winixt
Copy link

winixt commented Jan 11, 2024

import { defineConfig } from 'vite'
import { nodePolyfills } from 'vite-plugin-node-polyfills'

// https://vitejs.dev/config/
export default defineConfig({
  define: {
    "process.env.A": 1,
  },
  plugins: [
     nodePolyfills({
       globals: {
          process: true,
       },
    }),
  ],
})

image

@davidmyersdev davidmyersdev added the missing reproduction This issue does not provide a reproducible example of the problem. label Jan 14, 2024
@davidmyersdev
Copy link
Owner

Hey @winixt. Would you mind adding a reproducible example via Stackblitz or similar?

@davidmyersdev
Copy link
Owner

I'm closing this for now. If a reproduction of the issue is provided, I'll reopen it.

@davidmyersdev davidmyersdev closed this as not planned Won't fix, can't repro, duplicate, stale Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
missing reproduction This issue does not provide a reproducible example of the problem.
Projects
None yet
Development

No branches or pull requests

2 participants