Skip to content

🎥 Make videos programmatically with React

Docs: Suppress MapLibre worker bundler warning

Jonny Burger9b9253ede89d
diff --git a/packages/docs/docusaurus.config.ts b/packages/docs/docusaurus.config.ts
index 2ad87f1c7c..102073f2d7 100644
--- a/packages/docs/docusaurus.config.ts
+++ b/packages/docs/docusaurus.config.ts
@@ -348,6 +348,19 @@ const config: Config = {
],
],
plugins: [
+ // MapLibre's worker fallback uses a dynamic URL even when setWorkerUrl() is called.
+ () => ({
+ name: 'ignore-maplibre-worker-warning',
+ configureWebpack: () => ({
+ ignoreWarnings: [
+ {
+ module: /maplibre-gl\/dist\/maplibre-gl\.mjs$/,
+ message:
+ /Critical dependency: the request of a dependency is an expression/,
+ },
+ ],
+ }),
+ }),
elementSourceDependencies,
longContentHashes,
[