mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix @tanstack/query-devtools on legacy browsers
This commit is contained in:
parent
c1cfe7c2e9
commit
ea27750d7d
2 changed files with 20 additions and 1 deletions
|
@ -18,7 +18,9 @@ const RootApp = () => (
|
|||
</WebConfigProvider>
|
||||
</UserSettingsProvider>
|
||||
</ApiProvider>
|
||||
<ReactQueryDevtools initialIsOpen={false} />
|
||||
{window.Proxy && ( // '@tanstack/query-devtools' requires 'Proxy', which cannot be polyfilled for legacy browsers
|
||||
<ReactQueryDevtools initialIsOpen={false} />
|
||||
)}
|
||||
</QueryClientProvider>
|
||||
);
|
||||
|
||||
|
|
|
@ -230,6 +230,23 @@ const config = {
|
|||
}
|
||||
}]
|
||||
},
|
||||
// Strict EcmaScript modules require additional flags
|
||||
{
|
||||
test: /\.(js|jsx|mjs)$/,
|
||||
include: [
|
||||
path.resolve(__dirname, 'node_modules/@tanstack/query-devtools')
|
||||
],
|
||||
resolve: {
|
||||
fullySpecified: false
|
||||
},
|
||||
use: [{
|
||||
loader: 'babel-loader',
|
||||
options: {
|
||||
cacheCompression: false,
|
||||
cacheDirectory: true
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
test: /\.worker\.ts$/,
|
||||
exclude: /node_modules/,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue