rm webpack stuff

This commit is contained in:
Oleksii Bulenok
2026-08-13 17:43:06 +02:00
parent ea29924531
commit 23c4b81d90
8 changed files with 5 additions and 400 deletions
+2 -2
View File
@@ -3,13 +3,13 @@ type MediaBunnyModule = typeof import('mediabunny')
let promise: Promise<MediaBunnyModule> | undefined
/**
* Lazily loads mediabunny into its own webpack chunk and caches the resulting
* Lazily loads mediabunny into its own async chunk and caches the resulting
* promise so the module is fetched at most once. If the import fails (e.g. a
* transient chunk-load error), the cached promise is reset so a later call can
* retry the load.
*/
export function loadMediaBunny(): Promise<MediaBunnyModule> {
promise ??= import(/* webpackChunkName: "mediabunny" */ 'mediabunny').catch(
promise ??= import('mediabunny').catch(
e => {
// reset so a later attempt can retry after a transient chunk-load failure
promise = undefined