Fix Blurhash worker on webOS 1.2

Webpack 5 doesn't polyfill Promise in the worker, so we use (deprecated) 'worker-loader', which does until Webpack 5 gets a fix.
This commit is contained in:
Dmitry Lyzo 2021-12-31 00:04:12 +03:00
parent cc6611a98a
commit 64fb71ee1e
4 changed files with 52 additions and 2 deletions

View file

@ -101,6 +101,14 @@ module.exports = {
loader: 'babel-loader'
}]
},
{
test: /\.worker\.ts$/,
exclude: /node_modules/,
use: [
'worker-loader',
'ts-loader'
]
},
{
test: /\.(ts|tsx)$/,
exclude: /node_modules/,