jlengstorf / learn-rollup

This is an example project to accompany a tutorial on using Rollup.
https://code.lengstorf.com/learn-rollup-js/
ISC License
191 stars 61 forks source link

Minor bug in comment about debug #24

Closed helenb closed 7 years ago

helenb commented 7 years ago

In your code example you have the following:

// The logger should only be disabled if we’re not in production.
if (ENV !== 'production') {

  // Enable the logger.
  debug.enable('*');
  log('Logging is enabled!');
} else {
  debug.disable();
}

I think if I've understood correctly that the comment should read 'The logger should only be enabled if we're not in production'

jlengstorf commented 7 years ago

You're absolutely correct. This was fixed in #22, and is reflected in the code on the repo now (https://github.com/jlengstorf/learn-rollup/blob/master/src/scripts/main.js#L12). Thanks!