diff --git a/src/compiler/compile/nodes/Text.ts b/src/compiler/compile/nodes/Text.ts index 17883a0cdb..eff3efe06e 100644 --- a/src/compiler/compile/nodes/Text.ts +++ b/src/compiler/compile/nodes/Text.ts @@ -10,15 +10,5 @@ export default class Text extends Node { constructor(component: Component, parent: INode, scope: TemplateScope, info: any) { super(component, parent, scope, info); this.data = info.data; - - if (!component.component_options.preserveWhitespace && !/[\S\u00A0]/.test(info.data)) { - let node = parent; - while (node) { - if (node.type === 'Element' && node.name === 'pre') { - return; - } - node = node.parent; - } - } } }