-
-
Notifications
You must be signed in to change notification settings - Fork 158
Conversation
src/normalize-options.js
Outdated
@@ -71,7 +69,7 @@ export const validateModulesOption = (modulesOpt = "commonjs") => { | |||
|
|||
export default function normalizeOptions(opts) { | |||
// TODO: remove whitelist in favor of include in next major | |||
if (opts.whitelist && !hasBeenWarned) { | |||
if (opts.whitelist) { | |||
console.warn( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then we should add hasBeenWarned = true in the if block? otherwise it will warn multiple times?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hzoo yes! I thought it could be called once, but actually not. Updated!
Should we add a test for this? |
oh yeah, always |
maybe bot should warn - if you change src and no test files changed 😼 |
Maybe pre-commit hook? You can't commit unless some tests were added 🙂 I'll cover it after lunch (UTC +2). |
Nah since I don't want new contributors to not make the pr if they don't have it, can tell them after? |
I was joking :) But the bot that shows changes coverage - great idea! |
And we do have codecov set up on babel already |
Remove check for static
hasBeenWarned
that alwaysfalse
.