vue3-yuanma/packages/compiler-ssr/__tests__/utils.ts

6 lines
149 B
TypeScript
Raw Normal View History

import { compile } from '../src'
export function getCompiledString(src: string): string {
return compile(src).code.match(/_push\(([^]*)\)/)![1]
}