diff --git a/apps/u3-v2/.env b/apps/u3-v2/.env new file mode 100644 index 00000000..ba7cc18d --- /dev/null +++ b/apps/u3-v2/.env @@ -0,0 +1 @@ +GENERATE_SOURCEMAP=false diff --git a/apps/u3-v2/craco.config.js b/apps/u3-v2/craco.config.js deleted file mode 100644 index 34d45613..00000000 --- a/apps/u3-v2/craco.config.js +++ /dev/null @@ -1,25 +0,0 @@ -const webpack = require('webpack') - -module.exports = { - webpack: { - configure: (config) => { - // Replace include option for babel loader with exclude - // so babel will handle workspace projects as well. - config.module.rules[1].oneOf.forEach((r) => { - if (r.loader && r.loader.indexOf('babel') !== -1) { - r.exclude = /node_modules/ - delete r.include - } - }) - - config.plugins.push( - new webpack.ProvidePlugin({ - process: 'process/browser', - Buffer: ['buffer', 'Buffer'], - }), - ) - config.ignoreWarnings = [/Failed to parse source map/] - return config - }, - }, -} diff --git a/apps/u3-v2/package.json b/apps/u3-v2/package.json index a82fe556..6fef2de7 100644 --- a/apps/u3-v2/package.json +++ b/apps/u3-v2/package.json @@ -6,7 +6,6 @@ "@rainbow-me/rainbowkit": "^1.0.8", "@us3r-network/auth-with-rainbowkit": "^0.1.9", "@us3r-network/profile": "^0.5.6", - "buffer": "^6.0.3", "dayjs": "^1.11.9", "lodash": "^4.17.21", "react": "^18.2.0", @@ -20,9 +19,9 @@ "web-vitals": "^2.1.4" }, "scripts": { - "start": "craco start", - "build": "craco build", - "test": "craco test", + "start": "react-scripts start", + "build": "react-scripts build", + "test": "react-scripts test", "eject": "react-scripts eject", "format": "prettier --write \"**/*.{js,ts,tsx}\" --parser typescript" }, @@ -45,8 +44,6 @@ ] }, "devDependencies": { - "@craco/craco": "^7.1.0", - "@craco/types": "^7.1.0", "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0",