Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
const { types } = require('@babel/core');
const { E2E_TESTS } = process.env;

module.exports = {
presets: ['module:@react-native/babel-preset'],
plugins: [
// Support bigint literal `0n`
transformBigIntLiteral,
// Support `for await () {}`
'@babel/plugin-proposal-async-generator-functions',
[
Expand All @@ -25,17 +22,3 @@ module.exports = {
},
},
};

// Copied from unsupported https://github.com/babel/babel/pull/10102/files
function transformBigIntLiteral() {
return {
visitor: {
BigIntLiteral(path) {
const bigintCall = types.callExpression(types.identifier('BigInt'), [
types.stringLiteral(path.node.value),
]);
path.replaceWith(bigintCall);
},
},
};
}
Loading