Skip to content

Commit

Permalink
Update webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgraeme committed Oct 14, 2024
1 parent a3ad317 commit a50ccd7
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,37 +14,16 @@ module.exports = {
rules: [
{
test: /\.(ts|tsx)$/,
use: [
{
loader: 'babel-loader',
options: {
presets: [
'@babel/preset-env',
'@babel/preset-react',
'@babel/preset-typescript',
],
plugins: [
'react-native-web',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-export-namespace-from',
],
},
},
],
use: 'babel-loader',
exclude: /node_modules/,
},
],
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
alias: {
'react-native$': 'react-native-web',
},
},
externals: {
react: 'react',
'react-dom': 'react-dom',
'react-native': 'react-native',
'react-native-web': 'react-native-web',
},
};

0 comments on commit a50ccd7

Please sign in to comment.