From cbfe10cc840113c6c661cb09ad78b28410734b49 Mon Sep 17 00:00:00 2001 From: Birk Skyum Date: Tue, 10 Sep 2024 18:07:40 +0200 Subject: [PATCH 1/2] let node resolve the node_moduels path --- src/registry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/registry.js b/src/registry.js index 3cde30fa772..253f850043e 100644 --- a/src/registry.js +++ b/src/registry.js @@ -274,7 +274,7 @@ function registerTraceModule(_module) { // add maplibre-gl CSS here to avoid console warning on instantiation if(bpmName === 'map') { - require('../node_modules/maplibre-gl/dist/maplibre-gl.css'); + require('maplibre-gl/dist/maplibre-gl.css'); } // if `plotly-geo-assets.js` is not included, From cb2744ef4e7264a43fab7e0ffe887a2f772fb477 Mon Sep 17 00:00:00 2001 From: Birk Skyum Date: Tue, 10 Sep 2024 18:10:08 +0200 Subject: [PATCH 2/2] add draftlog --- draftlogs/7146_fix.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 draftlogs/7146_fix.md diff --git a/draftlogs/7146_fix.md b/draftlogs/7146_fix.md new file mode 100644 index 00000000000..7cb663a6834 --- /dev/null +++ b/draftlogs/7146_fix.md @@ -0,0 +1 @@ +- Fix require path to maplibre-gl.css [[#7146](https://github.com/plotly/plotly.js/pull/7146)]