From 3968fe5dfa757f586fe3bff3c4e08a96b2630f69 Mon Sep 17 00:00:00 2001 From: Maycon Mello Date: Wed, 9 Aug 2023 12:36:46 -0300 Subject: [PATCH] fixing webview module resolution --- packages/react-native/bundler/index.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/react-native/bundler/index.js b/packages/react-native/bundler/index.js index 6ad97c79..133f72dd 100644 --- a/packages/react-native/bundler/index.js +++ b/packages/react-native/bundler/index.js @@ -4,7 +4,6 @@ const NodePolyfillPlugin = require('node-polyfill-webpack-plugin'); const getWebpackConfig = ({entry, path, filename}) => ({ mode: 'development', - devtool: false, entry, output: { path, @@ -47,15 +46,12 @@ const getWebpackConfig = ({entry, path, filename}) => ({ rules: [ { test: /\.(m|c)?js$/, - exclude: [ - /\/node_modules\/(?!@polkadot|@docknetwork|@digitalbazaar|safe-buffer|readable-stream|@noble|lzutf8|@transmute|@bitauth)/, - ], + exclude: [/\/node_modules\/(?!@polkadot|@docknetwork|@digitalbazaar)/], use: { loader: require.resolve('babel-loader'), options: { presets: ['@babel/preset-env'], plugins: [ - require.resolve('../transform-bigint-to-number.js'), '@babel/plugin-transform-async-to-generator', '@babel/plugin-syntax-bigint', '@babel/plugin-transform-modules-commonjs',