Skip to content

Commit 8b7805d

Browse files
authored
Merge pull request #7146 from birkskyum/let-node-resolve-the-node_moduels-path
fix require path to resource in node_modules
2 parents 1192e00 + cb2744e commit 8b7805d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

draftlogs/7146_fix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Fix require path to maplibre-gl.css [[#7146](https://github.com/plotly/plotly.js/pull/7146)]

src/registry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ function registerTraceModule(_module) {
274274

275275
// add maplibre-gl CSS here to avoid console warning on instantiation
276276
if(bpmName === 'map') {
277-
require('../node_modules/maplibre-gl/dist/maplibre-gl.css');
277+
require('maplibre-gl/dist/maplibre-gl.css');
278278
}
279279

280280
// if `plotly-geo-assets.js` is not included,

0 commit comments

Comments
 (0)