From 3c86e3252d27b0ec4abafb253801ee0d493603d3 Mon Sep 17 00:00:00 2001 From: ieow Date: Thu, 24 Oct 2024 13:41:28 +0800 Subject: [PATCH] fix: cleanup --- .../customTransformer.js | 31 +++++++++---------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/mpc-core-kit-react-native/mpc-core-kit-expo-ed25519/customTransformer.js b/mpc-core-kit-react-native/mpc-core-kit-expo-ed25519/customTransformer.js index 162446a3..86a200b5 100644 --- a/mpc-core-kit-react-native/mpc-core-kit-expo-ed25519/customTransformer.js +++ b/mpc-core-kit-react-native/mpc-core-kit-expo-ed25519/customTransformer.js @@ -1,22 +1,19 @@ - const { nodeModulesPolyfillPlugin } = require("esbuild-plugins-node-modules-polyfill"); const reactNativeReactBridgeTransformer = require("react-native-react-bridge/lib/plugin"); const esbuildOptions = { - plugins: [ - nodeModulesPolyfillPlugin( - { - globals : { - Buffer : true, - crypto : true, - }, - // modules: { - // Buffer : true, - // } - } - ), - ], + plugins: [ + nodeModulesPolyfillPlugin({ + globals: { + Buffer: true, + crypto: true, + }, + // modules: { + // Buffer : true, + // } + }), + ], }; module.exports.transform = function ({ src, filename, options }) { - const transform = reactNativeReactBridgeTransformer.createTransformer(esbuildOptions); - return transform({ src, filename, options }); -}; \ No newline at end of file + const transform = reactNativeReactBridgeTransformer.createTransformer(esbuildOptions); + return transform({ src, filename, options }); +};