From 194be6bc54f5cd34017ee91b763ecfee0b28def6 Mon Sep 17 00:00:00 2001 From: Levi Wheatcroft Date: Thu, 29 Sep 2022 05:04:36 +0800 Subject: [PATCH] debug method to throw if not instantiated --- lib/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index e7dd91e..080491e 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,7 +1,9 @@ const path = require('path') const isUtf8 = require('is-utf8') const getTransformer = require('./get-transformer') -let debug = console.log +let debug = () => { + throw new Error('uninstantiated debug') +} function parseFilepath(filename) { const isNested = filename.includes(path.sep)