-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbabel.config.js
More file actions
30 lines (30 loc) · 851 Bytes
/
babel.config.js
File metadata and controls
30 lines (30 loc) · 851 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
30
module.exports = {
// https://babeljs.io/docs/en/options#retainlines
retainLines: true,
// https://babeljs.io/docs/en/options#comments
comments: false,
// https://babeljs.io/docs/en/options#compact
// compact: true,
// https://babeljs.io/docs/en/options#minified
// minified: true,
presets: [
[
// Using polyfills: No polyfills were added, since the `useBuiltIns` option was not set.
'@babel/preset-env',
{
// modules: 'commonjs',
targets: {
// Keep this roughly in-line with our "engines.node" value in package.json
node: '14',
},
exclude: [
// Node 14+ supports this natively AND we need it to operate natively
// so do NOT transpile it
'proposal-dynamic-import',
],
},
],
],
plugins: [],
ignore: [],
}