TritonDataCenter / node-assert-plus

Extra assertions on top of node's assert module
MIT License
122 stars 25 forks source link

Modified process.env to be import.meta.env to comply with vite 8ad7ecd #46

Open mjnks opened 1 year ago

mjnks commented 1 year ago

process.env returns a runtime error when using vite:

Uncaught ReferenceError: process is not defined at node_modules/assert-plus/assert.js (assert.js:211:30)

this is due to vite dropping process.env in https://github.com/vitejs/vite/commit/8ad7ecd1029bdc0b47e55877db10ac630829c7e5.