robinrodricks / vue3-touch-events

Simple touch events support for vue.js 3
MIT License
244 stars 31 forks source link

SyntaxError: Unexpected token 'export' #26

Closed phlegx closed 1 year ago

phlegx commented 1 year ago

Hi!

I use latest version 4.1.2 with Vite 4.x, vite-ssr and I get this error:

[vite] Error when evaluating SSR module /.../vue3/src/main.js: failed to import "/src/common/touch.js"
|- /.../vue3/node_modules/vue3-touch-events/index.js:416
export default vueTouchEvents
^^^^^^

SyntaxError: Unexpected token 'export'

If I add "type": "module", to package.json of vue3-touch-events all works fine again. Can this be added and released please?

Related issue: #23

robinrodricks commented 1 year ago

Published, please check?