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:
@@ -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/,
|
||||
|
||||
Reference in New Issue
Block a user