Skip to content

Commit

Permalink
package(common): update typing packages versions (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
artyorsh authored and 32penkin committed May 17, 2019
1 parent d0835af commit 735edd3
Show file tree
Hide file tree
Showing 15 changed files with 1,487 additions and 820 deletions.
31 changes: 27 additions & 4 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
module.exports = {
presets: [
const path = require('path');

const frameworkModulePath = path.resolve('./src/framework');

// FIXME: Resolve `transform[stderr]: Could not resolve` command-line warnings.
// FIXME: Reproducible when starting with clearing cache (npm start -- -c)

const moduleResolverConfig = {
root: path.resolve('./'),
alias: {
'@kitten/theme': path.resolve(frameworkModulePath, 'theme'),
'@kitten/ui': path.resolve(frameworkModulePath, 'ui'),
},
};

module.exports = function(api) {
api.cache(true);

const presets = [
'module:metro-react-native-babel-preset',
]
};
];

const plugins = [
['module-resolver', moduleResolverConfig],
];

return { presets, plugins };
};
Loading

0 comments on commit 735edd3

Please sign in to comment.