-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-export setRTLTextPlugin plugin (#1010)
- Loading branch information
1 parent
5bed923
commit c570c2f
Showing
5 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import mapboxgl from './mapboxgl'; | ||
|
||
// mapboxgl's setRTLTextPlugin, but does not crash in SSR | ||
const setRTLTextPlugin = mapboxgl ? mapboxgl.setRTLTextPlugin : () => {}; | ||
export default setRTLTextPlugin; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import test from 'tape-catch'; | ||
import {setRTLTextPlugin} from 'react-map-gl'; | ||
|
||
test('setRTLTextPlugin', t => { | ||
t.ok(typeof setRTLTextPlugin === 'function', 'setRTLTextPlugin is exported'); | ||
t.end(); | ||
}); |