Replies: 2 comments 3 replies
-
运行时 webpack 里 alias 把 |
Beta Was this translation helpful? Give feedback.
0 replies
-
是bundler-webpack这个包里面吗,我看到源码里面,直接拿的配置文件里面的alias,有另外单独定义的吗 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
umi 中可以导入 import { useModel } from 'umi',这里 useModel 实际是 .umi 中的 model 插件下的 index.ts 文件中导出的,然后 exports 文件中引入了,同时 umi 的 类型文件 index.d.ts 中加入了 export * from '@@/exports' 指向了这个临时文件 exports.ts,但是实际 umi 中不是应该没有这个导出吗,还是说通过 cjs 的运行时能力,运行时加载了 exports.ts 中的内容?看不懂啊,来个大佬解惑一下,拜谢
Beta Was this translation helpful? Give feedback.
All reactions