pikax / vue-composable

Vue composition-api composable components. i18n, validation, pagination, fetch, etc. +50 different composables
https://pikax.me/vue-composable/
MIT License
1.18k stars 64 forks source link

Error during esm build #802

Closed codanator closed 3 years ago

codanator commented 3 years ago

Hey,

iam building with vite 2.0.5 and getting this error:

3339: } 3340: function useTitle(overrideTitle = null) { 3341: if ((('process' in globalThis ? globalThis.process.env.SSR : 'import' in globalThis ? globalThis.import.meta.env.SSR : false) == true) && !isClient) { ^ 3342: return useSSRTitle(overrideTitle); 3343: } error during build: SyntaxError: Unexpected token (3341:47)

when i comment out the lines 3340 - 3343 the build succeeds.