Skip to content

Commit 74279f6

Browse files
committed
Specify babel runtime version to prevent babel helpers from being inlined
1 parent 7e158cf commit 74279f6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

babel.config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ module.exports = {
6868
},
6969
],
7070
'@babel/proposal-object-rest-spread',
71-
'@babel/plugin-transform-runtime',
71+
[
72+
'@babel/plugin-transform-runtime',
73+
{
74+
// Prevent helpers from being inlined in the output code
75+
// https://babeljs.io/docs/babel-plugin-transform-runtime#version
76+
version: '^7.28.4',
77+
},
78+
],
7279
],
7380
}

0 commit comments

Comments
 (0)