-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbabel.config.js
More file actions
35 lines (35 loc) · 1.07 KB
/
babel.config.js
File metadata and controls
35 lines (35 loc) · 1.07 KB
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
/**
* @file Babel configuration file.
*
* This file configures Babel to transpile modern JavaScript into a version
* compatible with the current Node.js environment. This is essential for
* ensuring that the latest JavaScript features can be used in the project
* while maintaining compatibility.
*/
export default {
/**
* The 'presets' array configures the Babel presets to be used.
*
* @see https://babeljs.io/docs/en/presets
*/
presets: [
[
/**
* '@babel/preset-env' is a smart preset that allows you to use the
* latest JavaScript without needing to micromanage which syntax
* transforms are needed by your target environment(s).
*
* @see https://babeljs.io/docs/en/babel-preset-env
*/
'@babel/preset-env',
{
/**
* The 'targets' option specifies the environments you want to support.
* 'node: 'current'' tells Babel to target the current version of Node.js
* that is running the build process.
*/
targets: {node: 'current'},
},
],
],
};