vue-google-maps icon indicating copy to clipboard operation
vue-google-maps copied to clipboard

Vue3 SSR Support (commonjs)

Open chemeng opened this issue 2 years ago • 1 comments

Hi, first of all thank you for the great package, works beautifully! I got 2 questions:

  1. Is there a way to import the component within another component and not in the main file? (so avoiding the app.use syntax)
  2. Is it possible to use commonjs syntax so that it's more SSR friendly? I'm currently getting a lot of import errors when trying to use it with node.

chemeng avatar Feb 27 '22 23:02 chemeng

  1. Is there a way to import the component within another component and not in the main file? (so avoiding the app.use syntax)

This is a good question and is to ask, is tree shaking supported?

It looks like it is there. This needs commented on, it might just be a matter of adding documentation. Google Maps might need to be loaded manually? Which is quite unfortunate if so, but whatever works for now since this project needs contributors.

aentwist avatar Mar 22 '22 04:03 aentwist