-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbabel.config.js
More file actions
29 lines (29 loc) · 920 Bytes
/
babel.config.js
File metadata and controls
29 lines (29 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* eslint-disable @typescript-eslint/no-unsafe-call */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
module.exports = function(api) {
api.cache(true);
return {
presets: [
['babel-preset-expo', {
unstable_transformImportMeta: true
}]
],
plugins: [
['@babel/plugin-proposal-decorators', { version: 'legacy' }],
['import', {
libraryName: 'lodash',
libraryDirectory: '',
camel2DashComponentName: false, // default: true
}],
['import', {
libraryName: 'date-fns',
libraryDirectory: '',
camel2DashComponentName: false, // default: true
}, 'import-date-fns'],
'@babel/plugin-transform-flow-strip-types',
['@babel/plugin-transform-private-methods', { loose: true }],
'babel-plugin-transform-typescript-metadata',
['inline-import', { extensions: ['.sql'] }],
],
};
};