vue-pdf-embed
vue-pdf-embed copied to clipboard
Use less broken advanced example
JSFiddle is being JSfiddle, it's not displaying the original example.
Addresses #78
I've confirmed the example works on Firefox and Chrome.
With a package.json under demo, this could easily run directly from the git repo. stackblitz.com/fork/github/hrynko/vue-pdf-embed/tree/master/demo
See vite.new/vue , vite.new , vite.new/vanilla-ts and vite.new/vue-ts
JSFiddle advanced example is still broken... I don't see the use of leaving a link to the broken example. Stackblitz does have a JSFiddle like product called EngineBlock, I think it's used by default on the Vue template. Not to be confused with vite.new/vue . This is not a CodeSandbox like system that requires login to run a Linux container... They all run purely on browser.
I see your point, but the JSFiddle example is not broken. It still works in some environments. Thus, I would keep both examples, so that the one can choose the preferred editor.
I can confirm the JSFiddle Advanced example is now working again in Firefox and Chrome. Stackblitz Classic's WebContainers are a good runtime, but it is not a good editor for Vue projects. Stackblitz CloudFlow is good for running and editing, but requires a special git repo and is not usable in incognito.
What I like about the WebContainer approach vs EngineBlock/JSFiddle is there is zero magic happening. There are no dependencies hidden behind menus or precompiled for you... Everything is done in front of you so you can see exactly what's happening.
Thanks, I appreciate it 👍