Nuxt integration example
marekalgoud opened this issue · comments
Is your feature request related to a problem? Please describe.
I would like to use vue-a11y-utils in a nuxt project, but when I tried to intergrate it in a component, I've this following error :
SyntaxError: Cannot use import statement outside a module
Describe the solution you'd like
Give an example of nuxt intergration (plugin example would be perfect). On my side I had to add this to the nuxt config to make it work on server side :
build: {
transpile: [ 'vue-a11y-utils']
},
Thanks for your work !
Anyway, the newly released v0.8.0 supports both CJS and ESM formats. So this problem has been solved. Thanks.