Skip to content

Commit

Permalink
add fake fallback for path in the online editor (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciusgerevini authored Oct 7, 2024
1 parent 7dfab00 commit bd666f5
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
8 changes: 8 additions & 0 deletions editor/config-overrides.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = function override (config, env) {
let loaders = config.resolve
loaders.fallback = {
"path": false,
}

return config
}
7 changes: 4 additions & 3 deletions editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"prop-types": "^15.7.2",
"react": "^17.0.1",
"react-ace": "^9.2.1",
"react-app-rewired": "^2.2.1",
"react-dom": "^17.0.1",
"react-redux": "^7.2.2",
"react-scripts": "5.0.1",
Expand All @@ -35,9 +36,9 @@
"web-vitals": "^0.2.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --run-in-band --coverage",
"start": "react-app-rewired start",
"build": "react-app-rewired build",
"test": "react-app-rewired test --run-in-band --coverage",
"eject": "react-scripts eject"
},
"eslintConfig": {
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8092,6 +8092,13 @@ react-app-polyfill@^3.0.0:
regenerator-runtime "^0.13.9"
whatwg-fetch "^3.6.2"

react-app-rewired@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/react-app-rewired/-/react-app-rewired-2.2.1.tgz#84901ee1e3f26add0377ebec0b41bcdfce9fc211"
integrity sha512-uFQWTErXeLDrMzOJHKp0h8P1z0LV9HzPGsJ6adOtGlA/B9WfT6Shh4j2tLTTGlXOfiVx6w6iWpp7SOC5pvk+gA==
dependencies:
semver "^5.6.0"

react-dev-utils@^12.0.1:
version "12.0.1"
resolved "https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-12.0.1.tgz"
Expand Down Expand Up @@ -8635,6 +8642,11 @@ semver@7.x, semver@^7.3.2, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7:
dependencies:
lru-cache "^6.0.0"

semver@^5.6.0:
version "5.7.2"
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8"
integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==

semver@^6.0.0, semver@^6.1.1, semver@^6.1.2, semver@^6.3.0:
version "6.3.1"
resolved "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz"
Expand Down

0 comments on commit bd666f5

Please sign in to comment.