forked from liferay/clay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
babel.config.js
49 lines (47 loc) · 934 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
39
40
41
42
43
44
45
46
47
48
49
/**
* SPDX-FileCopyrightText: © 2019 Liferay, Inc. <https://liferay.com>
* SPDX-License-Identifier: BSD-3-Clause
*/
module.exports = (api) => {
api.cache(true);
return {
env: {
production: {
plugins: [
[
'react-remove-properties',
{
properties: ['data-testid'],
},
],
],
},
},
ignore: ['node_modules', '**/__snapshots__/**', '**/__tests__/**'],
plugins: [
'babel-plugin-dev-expression',
'transform-inline-environment-variables',
],
presets: [
[
'@babel/env',
{
targets: [
'last 2 Chrome versions',
'last 1 Edge versions',
'last 2 Firefox versions',
'last 1 Opera versions',
'last 2 Safari versions',
'last 1 ChromeAndroid versions',
'last 2 iOS versions',
'Firefox 52',
'IE 11',
],
},
],
'@babel/preset-react',
'@babel/preset-typescript',
],
sourceMaps: true,
};
};