【发布时间】:2018-11-24 01:50:56
【问题描述】:
我在尝试通过延迟加载方法加载组件的索引文件中收到错误 SyntaxError: Unexpected token import。
const templates = () => import('@/pages/templates');
如果使用语法,它可以正常工作:
import templates from '@/pages/templates';
【问题讨论】:
标签: jestjs vue-test-utils