From 7ec7292f84a57636432b19e06c683e273c8faaf0 Mon Sep 17 00:00:00 2001 From: taoqf Date: Tue, 4 Feb 2020 11:21:45 +0800 Subject: [PATCH] export nodes --- src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 2555447..c6cd1b3 100755 --- a/src/index.ts +++ b/src/index.ts @@ -1,9 +1,11 @@ import arr_back from './back'; import CommentNode from './nodes/comment'; -export { default as HTMLElement } from './nodes/html'; import HTMLElement from './nodes/html'; import TextNode from './nodes/text'; +export { default as CommentNode } from './nodes/comment'; +export { default as HTMLElement } from './nodes/html'; export { default as Node } from './nodes/node'; +export { default as TextNode } from './nodes/text'; // https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name const kMarkupPattern = /)-->|<(\/?)([a-z][-.:0-9_a-z]*)\s*([^>]*?)(\/?)>/ig;