ijusplab / vue-cli-plugin-gas

Vue CLI plugin for Google Apps Script development using Clasp
11 stars 3 forks source link

not work Lazy Loading Routes. #14

Open murashi-sn opened 1 year ago

murashi-sn commented 1 year ago

Vue Router https://v3.router.vuejs.org/guide/advanced/lazy-loading.html#lazy-loading-routes

following code doesn't work.

{
  path: '/about',
  name: 'About',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
}

can work if modify following.

{
  path: '/about',
  name: 'About',
  component: About
}