File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change 1- const { types } = require ( '@babel/core' ) ;
21const { E2E_TESTS } = process . env ;
32
43module . 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- }
You can’t perform that action at this time.
0 commit comments