forked from Airtable/blocks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
babel.config.js
38 lines (37 loc) · 1009 Bytes
/
babel.config.js
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
30
31
32
33
34
35
36
37
38
const targets = {
node: '8.10',
browsers: ['firefox >= 45', 'chrome >= 49', 'safari >= 10', 'edge >= 25'],
};
module.exports = {
presets: [
'@babel/typescript',
[
'@babel/env',
{
useBuiltIns: 'usage',
corejs: 3,
targets,
include: ['transform-classes'],
},
],
'@babel/react',
],
plugins: [
'@babel/proposal-class-properties',
'@babel/proposal-nullish-coalescing-operator',
'@babel/proposal-optional-chaining',
'@babel/transform-runtime',
[
'transform-define',
{
'global.COMPATIBLE_SDK_VERSIONS': require('./package.json').peerDependencies[
'@airtable/blocks'
],
'global.PACKAGE_VERSION': require('./package.json').version,
},
],
],
parserOpts: {
allowAwaitOutsideFunction: true,
},
};