diff options
author | silverwind <me@silverwind.io> | 2023-03-18 05:36:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-18 00:36:32 -0400 |
commit | 48f6805b0f9eaa18097ee649497199944c77a73f (patch) | |
tree | 2e9db4553e68ea7042f7cc31c2ed9811506b5d5d /webpack.config.js | |
parent | fe8b6cbd91ccfac8ce2bccac8b8785aa7358a243 (diff) | |
download | gitea-48f6805b0f9eaa18097ee649497199944c77a73f.tar.gz gitea-48f6805b0f9eaa18097ee649497199944c77a73f.zip |
Remove worker-loader (#23548)
[`worker-loader`](https://github.com/webpack-contrib/worker-loader) is
deprecated since webpack 5 which can load workers without it now, so
remove it. I think it was already dysfunctional because the regex does
not match our current worker scripts:
```
web_src/js/features/eventsource.sharedworker.js
web_src/js/features/serviceworker.js
web_src/js/serviceworker.js
```
I did confirm that eventsource worker still loads via simple
`console.log` inside the script.
Co-authored-by: delvh <leon@kske.dev>
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/webpack.config.js b/webpack.config.js index 4949ed6a68..cfe4ba1526 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -112,18 +112,6 @@ export default { loader: 'vue-loader', }, { - test: /\.worker\.js$/, - exclude: /monaco/, - use: [ - { - loader: 'worker-loader', - options: { - inline: 'no-fallback', - }, - }, - ], - }, - { test: /\.js$/, exclude: /node_modules/, use: [ |