saberland / saber

()==[:::::::::::::> Build static sites in Vue.js, without the hassle
https://saber.egoist.dev
MIT License
2.15k stars 113 forks source link

webpack build gets stuck when using certain markdown syntax #265

Open egoist opened 5 years ago

egoist commented 5 years ago

Issuehunt badges

Bug report

Version

v0.6.7

Steps to reproduce

Download this and follow the repro steps in README.md

It gets stuck when using $$\frac{A_1B_2}{C}$$ in markdown with @iktakahiro/markdown-it-katex

What is expected?

webpack build succeeds.

What is actually happening?

webpack build gets stuck.

Other relevant information


IssueHunt Summary ### Backers (Total: $0.00) #### [Become a backer now!](https://issuehunt.io/r/saberland/saber/issues/265) #### [Or submit a pull request to get the deposits!](https://issuehunt.io/r/saberland/saber/issues/265) ### Tips - Checkout the [Issuehunt explorer](https://issuehunt.io/r/saberland/saber/) to discover more funded issues. - Need some help from other developers? [Add your repositories](https://issuehunt.io/r/new) on IssueHunt to raise funds. --- IssueHunt has been backed by the following sponsors. [Become a sponsor](https://issuehunt.io/membership/members)
issuehunt-oss[bot] commented 5 years ago

@issuehunt has funded $100.00 to this issue.


nblthree commented 5 years ago
info Using config file: saber-config.yml
success Compiled client successfully in 5m 9.3s!
info Available at http://localhost:3000
info 80.1 MB memory used

It's not that it gets stuck it just takes 5m 9.3s 🤣

nblthree commented 5 years ago

After tracking down this I ended up here https://github.com/vuejs/component-compiler-utils/blob/442d7b221d2075b2b53d8f6d4e1a4b4e6ab911e3/lib/compileTemplate.ts#L167-L178

that's why it takes so much time in dev mode. I don't know if this should be reported to prettier or not

nblthree commented 5 years ago

The issue https://github.com/prettier/prettier/issues/4784

nblthree commented 5 years ago

A work around is to set prettify: false in vue-loader options

lubien commented 5 years ago

This should be fixed in the next release, no ETA yet, probably in a couple of weeks, but I'll try to cut one before that

https://github.com/prettier/prettier/issues/4784#issuecomment-502602463

issuehunt-oss[bot] commented 4 years ago

@egoist has cancelled @issuehunt's funding for this issue.(Cancelled amount: $100.00) See it on IssueHunt