伙计们!当在生产模式(--prod标志)中导入和构建项目时使用别名时,别名是未定义的。这种行为在开发模式下不会发生。
有什么想法吗?
示例:
import { Utils as UtilBox } from '../../utils';发布于 2019-01-21 04:15:03
正确的生产方式是import * as utilbox from '../../utils'。根据指定的,这是一个非相对here导入。
https://stackoverflow.com/questions/54280511
复制相似问题