Skip to content

Commit

Permalink
Merge pull request #7146 from birkskyum/let-node-resolve-the-node_mod…
Browse files Browse the repository at this point in the history
…uels-path

fix require path to resource in node_modules
  • Loading branch information
archmoj authored Sep 10, 2024
2 parents 1192e00 + cb2744e commit 8b7805d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions draftlogs/7146_fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fix require path to maplibre-gl.css [[#7146](https://github.com/plotly/plotly.js/pull/7146)]
2 changes: 1 addition & 1 deletion src/registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8b7805d

Please sign in to comment.