maplibre-gl
Version:
BSD licensed community fork of mapbox-gl, a WebGL interactive maps library
23 lines (17 loc) • 890 B
JavaScript
//
// Our custom intro provides a specialized "define()" function, called by the
// AMD modules below, that sets up the worker blob URL and then executes the
// main module, storing its exported value as 'maplibregl'
// The three "chunks" imported here are produced by a first Rollup pass,
// which outputs them as AMD modules.
// Shared dependencies
import '../../staging/maplibregl/shared';
// Worker and its unique dependencies
// When this wrapper function is passed to our custom define() in build/rollup/bundle_prelude.js,
// it gets stringified, together with the shared wrapper (using
// Function.toString()), and the resulting string of code is made into a
// Blob URL that gets used by the main module to create the web workers.
import '../../staging/maplibregl/worker';
// Main module and its dependencies
import '../../staging/maplibregl/index';
export default maplibregl;