Cimpress-MCP / postal-codes-js

Provide postal code validation for javascript
Apache License 2.0
43 stars 36 forks source link

Process isn't defined error #73

Open SteveEdson opened 3 years ago

SteveEdson commented 3 years ago

I've recently switched to using Vite instead of Webpack, and now this module has stopped working.

I believe Vite changes the syntax to use import.meta.env instead of process.env.

Sorry for the lack of detail, on mobile currently so will update when back.