Thanks for the information! In fact, using process.env.NODE_ENV in both setups would be better. However since process.env.ROLLUP_WATCH is used to determine mode in rollup.config.js, I wanted to be consistent with it. I've changed it to process.env.NODE_ENV in Sapper template.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for the information! In fact, using
process.env.NODE_ENV
in both setups would be better. However sinceprocess.env.ROLLUP_WATCH
is used to determine mode inrollup.config.js
, I wanted to be consistent with it. I've changed it toprocess.env.NODE_ENV
in Sapper template.