Use the emscripten/emsdk Docker image to build the WASM artifact
Use the latest available ICU 75.1 and build it from the sources
Keep WASM artifacts in the repo
Use Rollup as a bundler
Provide one UMD bundle that inlines all WASM subresources as base64 string literals
Switch to GitHub Action instead of CircleCI
Adds local debug page run by vite
The API for the GL JS interoperability the same:
mapboxgl.setRTLTextPlugin('mapbox-gl-rtl-text.js');
// or
mapboxgl.setRTLTextPlugin(
'node_modules/@mapbox/mapbox-gl-rtl-text/dist/mapbox-gl-rtl-text.js',
null,
false
);
The NPM package now exports UMD with a pending promise as a default export (see src/index.js). The promise is resolved to previously exported functions:
emscripten/emsdk
Docker image to build the WASM artifactThe API for the GL JS interoperability the same:
The NPM package now exports UMD with a pending promise as a default export (see
src/index.js
). The promise is resolved to previously exported functions:Before
v0.2.3
After
There is no visual change compared with the latest stable v0.2.3.
Supersedes https://github.com/mapbox/mapbox-gl-rtl-text/pull/30 Closes https://github.com/mapbox/mapbox-gl-rtl-text/pull/30 https://github.com/mapbox/mapbox-gl-rtl-text/pull/26