diff --git a/config/webpack.config.js b/config/webpack.config.js index fea68abb..dd94258e 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -25,9 +25,7 @@ module.exports = { extensions: ['.js', '.jsx'] }, module: { - noParse: [ - /mapbox-gl\/dist\/mapbox-gl.js/ - ], + noParse: [], rules: rules }, node: { diff --git a/config/webpack.production.config.js b/config/webpack.production.config.js index 5afad473..3940c30f 100644 --- a/config/webpack.production.config.js +++ b/config/webpack.production.config.js @@ -23,9 +23,7 @@ module.exports = { extensions: ['.js', '.jsx'] }, module: { - noParse: [ - /mapbox-gl\/dist\/mapbox-gl.js/ - ], + noParse: [], rules: rules }, node: { diff --git a/stories/MapMaplibreGl.stories.js b/stories/MapMaplibreGl.stories.js index a8dc5892..28270ac9 100644 --- a/stories/MapMaplibreGl.stories.js +++ b/stories/MapMaplibreGl.stories.js @@ -1,13 +1,13 @@ import React from 'react'; -import MapMapboxGl from '../src/components/MapMapboxGl'; +import MapMaplibreGl from '../src/components/MapMaplibreGl'; import {action} from '@storybook/addon-actions'; import {Wrapper} from './ui'; import {withA11y} from '@storybook/addon-a11y'; export default { - title: 'MapMapboxGl', - component: MapMapboxGl, + title: 'MapMaplibreGl', + component: MapMaplibreGl, decorators: [withA11y], }; @@ -98,7 +98,7 @@ const mapStyle = { export const Basic = () => { return