vite-plugin-node-polyfills
vite-plugin-node-polyfills copied to clipboard
Bug: cannot polyfill the node process?
node_modules/@trigger.dev/core-backend/dist/index.mjs (2:9): "env" is not exported by "node_modules/vite-plugin-node-polyfills/shims/process/dist/index.js", imported by "node_modules/@trigger.dev/core-backend/dist/index.mjs"
nodePolyfills({
include: ["buffer", "process"],
globals: {
Buffer: true,
process: true,
},
}),
Code that trigger errors:
import { Buffer } from 'node:buffer';
import { env } from 'node:process'; <-- here