bunkat / later

A javascript library for defining recurring schedules and calculating future (or past) occurrences for them. Includes support for using English phrases and Cron schedules. Works in Node and in the browser.
http://bunkat.github.io/later/
MIT License
2.42k stars 244 forks source link

#155 process is undefined in webpack #208

Open seveves opened 7 years ago

seveves commented 7 years ago

process is a global nodejs variable that is not defined in the browser by default. So webpack doesn't know about it. Of course there are ways to define the process variable with webpack but that is not the default behavior and needs a plugin (DefinePlugin) or other workaround. I've tested this change locally with an angular/ionic app and it works great. I also tried to keep the ternary operator (?:) but this also confuses webpack.

seveves commented 7 years ago

PR #189 will be fixed with this too

niftylettuce commented 4 years ago

This issue is now fixed per my work with Bree, I have an updated fork of this package called @breejs/later. See https://github.com/breejs/later if you have additional PR's or issues to file. Contributions welcome to clean it up.