miaolz123 / vue-markdown

A Powerful and Highspeed Markdown Parser for Vue
https://miaolz123.github.io/vue-markdown/
MIT License
1.89k stars 257 forks source link

Vue-Markdown does not Support Babel 7 #58

Open AtofStryker opened 6 years ago

AtofStryker commented 6 years ago

Looks like there are runtime dependencies on Babel-runtime in the vue-markdown.common.js. Babel-runtime was removed in babel 7

Since babel is used as a transpiler for builds, why is it required to be used for vue-markdown? I would think babel-runtime (babel 6) would be added as a peer dependency so consumers know to install it or it would not be included as a runtime dependency.

Are there plans to remove this or support babel 7? This is related to issue #18

NathanStrutz commented 5 years ago

Because of this error, vue-markdown does not work inside of Vue CLI apps.

kathychurch commented 5 years ago

Is there any work-around for this in the meantime?

Akirami commented 5 years ago

@kathychurch

Is there any work-around for this in the meantime?

I'm working on it, please i need some test here:

https://github.com/Akirami/vue-markdown-v2

npm install --save vue-markdown-v2

Actually, all is fine except it need a loader for emoji (markdown-it-emoji), i don't run run test and I have not tested it yet in production.

Repo is open for issues, some feedback are welcome.