Open hzjjg opened 2 years ago
I am try to use vue-router lib, and I had imported ESM module from vue-router/dist/vue-router.esm-bundler,
but when I use the member from the module, error "Unexpected token 'export'" occurred
you can find the demo at: https://stackblitz.com/edit/vue-un4z2l?file=src/router.js
There's a Vite Vue template under the Vite tab on the start new project screen.
@hzjjg I would definitely switching to using a Vite based starter. You can try one here: https://vite.new/vue
I am try to use vue-router lib, and I had imported ESM module from vue-router/dist/vue-router.esm-bundler,
but when I use the member from the module, error "Unexpected token 'export'" occurred
you can find the demo at: https://stackblitz.com/edit/vue-un4z2l?file=src/router.js