webpack动态导入文件报错的解决方法

在进行webpack搭建单页面应用时,使用到了vue-router,配置路由的过程中,出现import语法错误。针对此现象,我们一起来分析下。 路由配置的代码如下: const routes = [{ path: '/customer01', name: 'customer', component: () => import('../../views/customer/Index.vue') ...