vuejs / repl

Vue SFC REPL as a Vue 3 component
https://repl-vuejs.vercel.app
MIT License
908 stars 163 forks source link

Add import for Pinia #66

Closed vanillajonathan closed 1 year ago

vanillajonathan commented 1 year ago

Add import for Pinia.

sxzz commented 1 year ago

You can configure Import Map yourself.

vanillajonathan commented 1 year ago

Possibly, but it seems inconvenient and tricky. Someone probably wouldn't know where to find a pinia.esm-browser.js file. It would be much more user-friendly if it already had an entry in the import map for Pinia.

sxzz commented 1 year ago

There are tons of deps in npm. We cannot add all of them (like Vue Router, Pinia, Vuex, UI library...)

vuejs/repl is designed more for skilled developers.

vanillajonathan commented 1 year ago

Why couldn't Pinia (and some others) be added, aren't they lazy loaded? So it shouldn't affect bundle size or performance?

I think skilled developers probably have their local development environments setup on their machines. I think the vuejs/repl via the Vue SFC Playground is often used by novice developers.