-
Notifications
You must be signed in to change notification settings - Fork 85
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
Vue 3 upgrade #90
Comments
Hey guys just released example vue 3 csb: https://codesandbox.io/s/vue-3-support-for-vue-prism-editor-fm7v5 install: npm install vue-prism-editor@alpha or yarn add vue-prism-editor@alpha cheers 🎉 |
Great work! Thanks 🎉🎉🎉 |
Nice work @koca When using with By changing these two lines to const isWindows = /Win/i.test(navigator.platform);
const isMacLike = /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform); It works, but of course will fail if running on SSR, do you have any idea how to fix it since |
thanks @atinux. Released a new version I made an example for vite + prismjs + vue-prism-editor usage: install: npm install vue-prism-editor@alpha or yarn add vue-prism-editor@alpha If you have any questions let me know :) |
Awesome, that was fast! |
@koca do you plan to add support to vite in the Vue 2 version? I'm stuck on Vue 2 but also really want to use vite haha |
Sure, you get the |
Yeah, I worked around it by adding <script>
const global = globalThis;
</script> To my index.html, but it would be nice if a front-end lib didn't depend on Node.js stuff |
Yes I'll change |
@koca will it be officially released soon? great job btw! |
I'm having a hard time building the alpha for my Vue 3 web app. Between workspaces, lerna/yarn using a mutex flag, and autoprefixer being referenced but unspecified in the dependencies I'm running circles trying to get a UMD prod min version of this script. Has this project been abandoned? Can you put out a pre-built release of the alpha? EDIT: nevermind needing to build, found one on jsdelivr |
Are there any plans to release an update for the upcoming Vue 3?
Thanks for the great component 😄
The text was updated successfully, but these errors were encountered: