Skip to content

Commit

Permalink
fixing webview module resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
maycon-mello committed Aug 9, 2023
1 parent 8a50357 commit 3968fe5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/react-native/bundler/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');

const getWebpackConfig = ({entry, path, filename}) => ({
mode: 'development',
devtool: false,
entry,
output: {
path,
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 3968fe5

Please sign in to comment.