Only detect indent if babel-generator is provided code string, vs multi-source object.
This commit is contained in:
parent
288b3ba559
commit
3c6c09d00a
@ -71,7 +71,7 @@ export class CodeGenerator extends Printer {
|
||||
|
||||
static normalizeOptions(code, opts, tokens) {
|
||||
let style = " ";
|
||||
if (code) {
|
||||
if (code && typeof code === "string") {
|
||||
let indent = detectIndent(code).indent;
|
||||
if (indent && indent !== " ") style = indent;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user