|
|
@ -1,4 +1,4 @@
|
|
|
|
import { walk, childKeys } from 'estree-walker';
|
|
|
|
import { walk } from 'estree-walker';
|
|
|
|
import { getLocator } from 'locate-character';
|
|
|
|
import { getLocator } from 'locate-character';
|
|
|
|
import Stats from '../Stats';
|
|
|
|
import Stats from '../Stats';
|
|
|
|
import { globals, reserved, is_valid } from '../utils/names';
|
|
|
|
import { globals, reserved, is_valid } from '../utils/names';
|
|
|
@ -37,13 +37,6 @@ interface ComponentOptions {
|
|
|
|
preserveWhitespace?: boolean;
|
|
|
|
preserveWhitespace?: boolean;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// We need to tell estree-walker that it should always
|
|
|
|
|
|
|
|
// look for an `else` block, otherwise it might get
|
|
|
|
|
|
|
|
// the wrong idea about the shape of each/if blocks
|
|
|
|
|
|
|
|
childKeys.EachBlock = childKeys.IfBlock = ['children', 'else'];
|
|
|
|
|
|
|
|
childKeys.Attribute = ['value'];
|
|
|
|
|
|
|
|
childKeys.ExportNamedDeclaration = ['declaration', 'specifiers'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default class Component {
|
|
|
|
export default class Component {
|
|
|
|
stats: Stats;
|
|
|
|
stats: Stats;
|
|
|
|
warnings: Warning[];
|
|
|
|
warnings: Warning[];
|
|
|
|