Skip to content

Commit bfad2af

Browse files
committed
Fixed babel configuration so that generated code is for node environment
Without this, the prod version was giving a runtime error: regeneratorRuntime is not defined
1 parent a6d562d commit bfad2af

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

babel.config.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
const presets = ['@babel/env'];
1+
const presets = [
2+
[
3+
'@babel/preset-env',
4+
{
5+
targets: {
6+
node: true
7+
}
8+
}
9+
]
10+
];
211

312
const plugins = ['@babel/plugin-proposal-class-properties'];
413

0 commit comments

Comments
 (0)