Skip to content

can't handle parse vue sfc content correctly #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
643104191 opened this issue Nov 24, 2022 · 1 comment
Open

can't handle parse vue sfc content correctly #59

643104191 opened this issue Nov 24, 2022 · 1 comment

Comments

@643104191
Copy link

var html = require("html-parse-stringify")

console.time('html')

const result = html.parse(`<template><main-page v-bind="$attrs" :class="{a: tr2}"><view v-if="msg"></view><view v-else></view><template v-if="test"><view></view></template></main-page></template><style lang="scss">.test{}</style><script setup lang="ts"></script><script module="test" lang="renderjs">console.log('</template>')const a = 1</script>`)

console.log((result))


console.timeEnd('html')

image

@adrai
Copy link
Collaborator

adrai commented Feb 25, 2025

@643104191 you may want to check if this PR would address your issue: #64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants