Set workerPublicPath in webpack config (#20629)

GitOrigin-RevId: 3fba33a6b52bf2a91f3126efc9d76f6f1dfbc1c4
This commit is contained in:
Alf Eaton
2024-10-14 11:06:45 +00:00
committed by Copybot
parent d9a4c5b2bc
commit 53d6b4dfd0
6 changed files with 19 additions and 31 deletions
-9
View File
@@ -1,9 +0,0 @@
export const createWorker = callback => {
if (process.env.CYPRESS) {
return callback()
}
const webpackPublicPath = __webpack_public_path__
__webpack_public_path__ = '/'
callback()
__webpack_public_path__ = webpackPublicPath
}