[英]Expo react native not using plugin defined in babel.config.js
So I am using minimal workflow with Typescript and I have this in babel.config.js
,所以我在 Typescript 中使用了最少的工作流程,并且在
babel.config.js
有这个,
module.exports = function (api) {
api.cache(true)
return {
presets: ["babel-preset-expo"],
plugins: [
[
"module-resolver",
{
root: ["."],
alias: {
"lib/": "./"
}
}
]
]
}
}
As you can see I am using babel-plugin-module-resolver
to alias path.如您所见,我正在使用
babel-plugin-module-resolver
来别名路径。 But it's not working at all.但它根本不起作用。 What am I doing wrong here?
我在这里做错了什么?
I needed to clear cache.我需要清除缓存。
yarn ios -- -c
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.