Skip to content

Commit

Permalink
fix: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ieow committed Oct 24, 2024
1 parent 518bea9 commit 3c86e32
Showing 1 changed file with 14 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -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 });
};
const transform = reactNativeReactBridgeTransformer.createTransformer(esbuildOptions);
return transform({ src, filename, options });
};

0 comments on commit 3c86e32

Please sign in to comment.