|
while((result = ANSIRegex.exec(text)) !== null) { |
Whilst this works in the majority of cases, when bundled using esbuild via a package that references smartwrap as a dependency, this line causes:
ReferenceError: result is not defined
I think if the eslint-ignore lines were absent this would be caught by eslint, I can't see a reason to use a global variable here if it was intentional.
smartwrap/src/main.js
Line 179 in 008b536
Whilst this works in the majority of cases, when bundled using esbuild via a package that references smartwrap as a dependency, this line causes:
I think if the eslint-ignore lines were absent this would be caught by eslint, I can't see a reason to use a global variable here if it was intentional.