1 Star 1 Fork 0

shengtaii/kittenTricks

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
babel.config.js 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
Artur Yorsh 提交于 2020-02-10 15:45 . feat: eva material compatibility
const path = require('path');
const env = require('./env');
const frameworkAlias = {
'@eva-design/dss': path.resolve(env.EVA_PACKAGES_PATH, 'dss'),
'@eva-design/eva': path.resolve(env.EVA_PACKAGES_PATH, 'eva'),
'@eva-design/material': path.resolve(env.EVA_PACKAGES_PATH, 'material'),
'@eva-design/processor': path.resolve(env.EVA_PACKAGES_PATH, 'processor'),
'@ui-kitten/components': path.resolve(env.UI_KITTEN_PACKAGES_PATH, 'components'),
'@ui-kitten/date-fns': path.resolve(env.UI_KITTEN_PACKAGES_PATH, 'date-fns'),
'@ui-kitten/eva-icons': path.resolve(env.UI_KITTEN_PACKAGES_PATH, 'eva-icons'),
'@ui-kitten/moment': path.resolve(env.UI_KITTEN_PACKAGES_PATH, 'moment'),
};
const frameworkInternalAlias = {
'@kitten/theme': path.resolve(env.UI_KITTEN_PACKAGES_PATH, 'components/theme'),
'@kitten/ui': path.resolve(env.UI_KITTEN_PACKAGES_PATH, 'components/ui'),
};
const moduleResolverConfig = {
root: path.resolve('./'),
alias: {
...frameworkAlias,
...frameworkInternalAlias,
},
};
module.exports = function (api) {
api.cache(true);
const presets = [
'babel-preset-expo',
];
const plugins = [
['module-resolver', moduleResolverConfig],
];
return { presets, plugins };
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/shengtaii/kittenTricks.git
[email protected]:shengtaii/kittenTricks.git
shengtaii
kittenTricks
kittenTricks
master

搜索帮助