Skip to content

Commit 491fccd

Browse files
committed
chore: remove unnecessary babel plugin
1 parent bfa857b commit 491fccd

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

babel.config.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
const { types } = require('@babel/core');
21
const { E2E_TESTS } = process.env;
32

43
module.exports = {
54
presets: ['module:@react-native/babel-preset'],
65
plugins: [
7-
// Support bigint literal `0n`
8-
transformBigIntLiteral,
96
// Support `for await () {}`
107
'@babel/plugin-proposal-async-generator-functions',
118
[
@@ -25,17 +22,3 @@ module.exports = {
2522
},
2623
},
2724
};
28-
29-
// Copied from unsupported https://github.com/babel/babel/pull/10102/files
30-
function transformBigIntLiteral() {
31-
return {
32-
visitor: {
33-
BigIntLiteral(path) {
34-
const bigintCall = types.callExpression(types.identifier('BigInt'), [
35-
types.stringLiteral(path.node.value),
36-
]);
37-
path.replaceWith(bigintCall);
38-
},
39-
},
40-
};
41-
}

0 commit comments

Comments
 (0)