mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-18 15:54:22 +00:00
* Compile with buble and bundle with webpack * Reduce number of dependencies * Support for tree-shaking * Standalone, easy-to-understand example with small package.json * Tests now work under Node.js even when loading mapbox-gl. * Fix travis config
11 lines
275 B
JavaScript
11 lines
275 B
JavaScript
// Enables ES2015 import/export in Node.js
|
|
require('reify');
|
|
|
|
// Registers an alias for this module
|
|
const path = require('path');
|
|
const moduleAlias = require('module-alias');
|
|
moduleAlias.addAlias('react-map-gl', path.resolve('./dist'));
|
|
|
|
// Run the tests
|
|
require('./index');
|