From 1b23c371b7528ff3f649868c3134bcc42c7e2236 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Fri, 16 Sep 2022 11:32:21 +0200 Subject: [PATCH] path --- apps/remix-ide/webpack.config.js | 9 ++++++++- package.json | 1 + yarn.lock | 5 +++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/apps/remix-ide/webpack.config.js b/apps/remix-ide/webpack.config.js index 529fe58d39..57fd709495 100644 --- a/apps/remix-ide/webpack.config.js +++ b/apps/remix-ide/webpack.config.js @@ -16,6 +16,13 @@ module.exports = config => { const nxWebpackConfig = nxWebpack(config) const webpackConfig = { ...nxWebpackConfig, + resolve: { + ...nxWebpackConfig.resolve, + alias: { + path: require.resolve("path-browserify"), + } + }, + node: { fs: 'empty', tls: 'empty', @@ -38,7 +45,7 @@ module.exports = config => { }) ] } - + webpackConfig.output.chunkLoadTimeout = 600000 if (process.env.NODE_ENV === 'production') { diff --git a/package.json b/package.json index 90740ac3d5..4a8164df48 100644 --- a/package.json +++ b/package.json @@ -198,6 +198,7 @@ "merge": "^2.1.1", "monaco-editor": "^0.30.1", "npm-install-version": "^6.0.2", + "path-browserify": "^1.0.1", "prettier": "^2.7.1", "prettier-plugin-solidity": "^1.0.0-beta.24", "raw-loader": "^4.0.2", diff --git a/yarn.lock b/yarn.lock index 1f51deb7ae..62de31106f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -18523,6 +18523,11 @@ path-browserify@0.0.1, path-browserify@~0.0.0: resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.1.tgz#e6c4ddd7ed3aa27c68a20cc4e50e1a4ee83bbc4a" integrity sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ== +path-browserify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-1.0.1.tgz#d98454a9c3753d5790860f16f68867b9e46be1fd" + integrity sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g== + path-case@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/path-case/-/path-case-3.0.4.tgz#9168645334eb942658375c56f80b4c0cb5f82c6f"