Skip to content

Commit

Permalink
try with named export instead
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck committed May 19, 2021
1 parent d1726d9 commit d5d7f07
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
3 changes: 1 addition & 2 deletions packages/kbn-mapbox-gl/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ import 'mapbox-gl/dist/mapbox-gl.css';
mapboxgl.workerUrl = mbWorkerUrl;
mapboxgl.setRTLTextPlugin(mbRtlPlugin);

// eslint-disable-next-line import/no-default-export
export default mapboxgl;
export { mapboxgl };
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
import { initVegaLayer, initTmsRasterLayer } from './layers';

// @ts-expect-error
import mapboxgl from '@kbn/mapbox-gl';
import { mapboxgl } from '@kbn/mapbox-gl';

jest.mock('mapbox-gl/dist/mapbox-gl-csp', () => ({
setRTLTextPlugin: jest.fn(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import type { Map, Style, MapboxOptions } from 'mapbox-gl';

import { View, parse } from 'vega';

// @ts-expect-error
import mapboxgl from '@kbn/mapbox-gl';
import { mapboxgl } from '@kbn/mapbox-gl';

import { initTmsRasterLayer, initVegaLayer } from './layers';
import { VegaBaseView } from '../vega_base_view';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ import { Adapters } from 'src/plugins/inspector/public';
import { Filter } from 'src/plugins/data/public';
import { ActionExecutionContext, Action } from 'src/plugins/ui_actions/public';

// @ts-expect-error
import mapboxgl from '@kbn/mapbox-gl';
import { mapboxgl } from '@kbn/mapbox-gl';

import { DrawFilterControl } from './draw_control';
import { ScaleControl } from './scale_control';
Expand Down

0 comments on commit d5d7f07

Please sign in to comment.