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:
parent
cc6611a98a
commit
64fb71ee1e
4 changed files with 52 additions and 2 deletions
|
@ -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/,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue