Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions template/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
*********************************************
*/
const configVars = require('./configTransform');
const { getCustomizationApiPath } = require('./customization.config');
const {getCustomizationApiPath} = require('./customization.config');

// This file is read only by react native for IOS & Android. Doesn't apply to electron, Web targets
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
presets: ['@react-native/babel-preset'],
plugins: [
['transform-define', configVars],
[
Expand All @@ -29,6 +29,6 @@ module.exports = {
},
},
],
'react-native-reanimated/plugin'
'react-native-reanimated/plugin',
],
};
49 changes: 23 additions & 26 deletions template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@gorhom/bottom-sheet": "4.4.7",
"@netless/react-native-whiteboard": "^0.0.14",
"@openspacelabs/react-native-zoomable-view": "^2.1.1",
"@react-native-async-storage/async-storage": "1.19.2",
"@react-native-async-storage/async-storage": "2.2.0",
"@react-native-community/checkbox": "0.5.16",
"@react-native-community/clipboard": "1.5.1",
"@splinetool/runtime": "^1.9.69",
Expand All @@ -64,7 +64,7 @@
"agora-extension-beauty-effect": "^1.0.2-beta",
"agora-extension-virtual-background": "^1.1.3",
"agora-react-native-rtm": "2.2.4",
"agora-rtc-sdk-ng": "4.23.4",
"agora-rtc-sdk-ng": "4.23.0",
"agora-rtm-sdk": "2.2.2",
"buffer": "^6.0.3",
"electron-log": "4.3.5",
Expand All @@ -82,10 +82,10 @@
"npm": "^9.7.2",
"p-queue": "^7.3.4",
"protobufjs": "^7.2.5",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-is": "18.0.0",
"react-native": "0.72.4",
"react": "19.2.4",
"react-dom": "19.2.4",
"react-is": "19.2.4",
"react-native": "0.83.1",
"react-native-agora": "4.3.2",
"react-native-agora-chat": "1.2.1",
"react-native-document-picker": "^9.1.0",
Expand All @@ -102,8 +102,8 @@
"react-native-share": "10.0.2",
"react-native-svg": "13.6.0",
"react-native-vector-icons": "9.2.0",
"react-native-walkthrough-tooltip": "1.4.0",
"react-native-web": "0.19.7",
"react-native-walkthrough-tooltip": "1.6.0",
"react-native-web": "0.21.2",
"react-native-webview": "13.8.1",
"react-router-dom": "5.2.0",
"react-router-native": "5.2.0",
Expand All @@ -123,21 +123,21 @@
"@babel/preset-typescript": "7.13.0",
"@babel/runtime": "^7.20.0",
"@bam.tech/react-native-make": "3.0.3",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.5",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
"@react-native-community/eslint-config": "1.1.0",
"@react-native/eslint-config": "^0.72.2",
"@react-native/metro-config": "^0.72.11",
"@react-native/babel-preset": "^0.83.1",
"@react-native/eslint-config": "0.83.1",
"@react-native/metro-config": "0.83.1",
"@tsconfig/react-native": "^3.0.0",
"@types/hark": "^1.2.2",
"@types/jest": "25.2.3",
"@types/react": "17.0.2",
"@types/react": "19.2.13",
"@types/react-is": "17.0.3",
"@types/react-native": "0.67.6",
"@types/react-native-keep-awake": "2.0.2",
"@types/react-router-dom": "5.1.7",
"@types/react-router-native": "5.1.0",
"@types/react-test-renderer": "18.0.0",
"@types/webpack-dev-server": "3.11.4",
"@types/react-test-renderer": "19.1.0",
"@types/webpack-env": "^1.16.4",
"@typescript-eslint/eslint-plugin": "6.4.0",
"@typescript-eslint/parser": "6.4.0",
Expand All @@ -160,34 +160,31 @@
"html-webpack-plugin": "4.5.2",
"ignore-loader": "^0.1.2",
"jest": "^29.2.1",
"metro-react-native-babel-preset": "0.76.8",
"prettier": "^2.4.1",
"react-devtools-electron": "4.7.0",
"react-native-url-polyfill": "^2.0.0",
"react-refresh": "0.12.0",
"react-test-renderer": "18.2.0",
"react-test-renderer": "19.2.4",
"style-loader": "3.3.1",
"ts-loader": "^8.3.0",
"typescript": "4.8.4",
"webpack": "5.72.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "4.8.1",
"webpack-merge": "5.8.0",
"webpack": "5.98.0",
"webpack-cli": "5.1.4",
"webpack-dev-server": "5.2.0",
"webpack-merge": "6.0.1",
"webpack-node-externals": "3.0.0",
"yargs": "15.4.1"
},
"overrides": {
"@netless/react-native-whiteboard": {
"react-native-webview": "13.8.1"
},
"agora-extension-ai-denoiser": {
"agora-rtc-sdk-ng": "4.20.1-1"
},
"agora-extension-virtual-background": {
"agora-rtc-sdk-ng": "4.20.1-1"
},
"@bam.tech/react-native-make": {
"sharp": "0.33.5"
},
"react-spring-bottom-sheet": {
"react": "$react",
"react-dom": "$react-dom"
}
},
"engines": {
Expand Down
6 changes: 6 additions & 0 deletions template/webpack.commons.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ module.exports = {
},
},
},
{
test: /\.m?js/,
resolve: {
fullySpecified: false,
},
},
{
test: /\.(mp4|png|jpe?g|gif)$/i,
use: [
Expand Down
7 changes: 6 additions & 1 deletion template/webpack.web.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ module.exports = merge(commons, {
port: 9000,
// https: true,
historyApiFallback: true, // Support for react-router
static: './', // same as contentBase from webpack v4 config
static: {
directory: './',
watch: {
usePolling: true,
},
},
client: {
overlay: false,
},
Expand Down