Skip to content

Commit

Permalink
refactor(create-plugin): rename publicPath import for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
jackw committed Jul 1, 2024
1 parent cf174f7 commit f65b479
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
* We fallback to the plugin root so that older versions of Grafana will continue to load the plugin correctly.
*/

// @ts-ignore
import module from 'amd-module';
// @ts-nocheck
import amdMetaModule from 'amd-module';

// @ts-ignore
__webpack_public_path__ =
module && module.uri
? module.uri.slice(0, module.uri.lastIndexOf('/') + 1)
: 'public/plugins/{{ pluginId }}/';
amdMetaModule && amdMetaModule.uri
? amdMetaModule.uri.slice(0, amdMetaModule.uri.lastIndexOf('/') + 1)
: 'public/plugins/heywesty-trafficlight-panel/';

0 comments on commit f65b479

Please sign in to comment.