Skip to content

Commit

Permalink
Merge pull request #483 from MajorLift/230728-fix-issue-479-react-ref…
Browse files Browse the repository at this point in the history
…resh-scope-pollution

Fix: #479 react-refresh scope pollution
  • Loading branch information
MajorLift authored Jul 28, 2023
2 parents d257bfc + 0995131 commit 8461605
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions app/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<script>
window.$RefreshReg$ = () => {};
window.$RefreshSig$ = () => () => {};
</script>
<body>
<div id="root"></div>
</body>
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
]
},
"scripts": {
"start": "pkill -9 node; yarn clean && NODE_ENV=production docker-compose up -d && yarn build && yarn workspace @mono/server start",
"dev": "pkill -9 node; yarn clean && rm -rf ./db-data && docker-compose up -d && NODE_ENV=development concurrently \"yarn workspace @mono/server start\" \"yarn workspace @mono/app dev\"",
"docker-reload": "docker-compose down --volumes && rm -rf ./db-data && docker-compose up -d",
"build": "NODE_ENV=production yarn workspace @mono/app build",
"start": "pkill -9 node; yarn clean && yarn docker-reload && yarn build && yarn workspace @mono/server start || yarn docker-clean",
"dev": "pkill -9 node; yarn clean && yarn docker-reload && NODE_ENV=development concurrently \"yarn workspace @mono/server start\" \"yarn workspace @mono/app dev\"",
"docker-clean": "docker-compose down --volumes && rm -rf ./db-data",
"docker-reload": "yarn docker-clean && docker-compose up -d",
"build": "NODE_ENV=production yarn workspace @mono/app build && yarn tsc --noEmit false",
"swc:common": "yarn workspaces foreach -v run swc",
"swc-watch:common": "yarn workspaces foreach -vp run swc-watch",
"clean": "yarn workspaces foreach -v exec rm -rf dist build",
Expand Down Expand Up @@ -65,4 +66,4 @@
"@reduxjs/toolkit": "^1.9.5",
"redux": "^4.2.1"
}
}
}

0 comments on commit 8461605

Please sign in to comment.