Skip to content

Commit 912261a

Browse files
committed
use preset-env's debug option to show the targets and plugins being used
1 parent bc5dadd commit 912261a

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

babel.config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
// babel.config.js
2-
const presets = [["@babel/preset-env"]];
2+
const presets = [
3+
[
4+
"@babel/preset-env",
5+
{
6+
// Pass a config object to the preset
7+
debug: true, // Output the targets/plugins used when compiling
8+
},
9+
],
10+
];
311

412
const plugins = [];
513

0 commit comments

Comments
 (0)