Приложение Openlayers (5.1.3) в комплекте с browserify и babel:
import {Map, View} from 'ol';
import TileLayer from 'ol/layer/Tile';
import OSM from 'ol/source/OSM';
import {bbox} from 'ol/loadingstrategy';
import proj from 'ol/proj';
...
var source = new VectorSource({
loader: function( extent, resolution, projection ) {
var crs = config.crs || "EPSG:4326";
var url = '/rest/table/' + config.table;
var newExtent = proj.transformExtent( extent, proj.get( crs ), proj.get('EPSG:3857'));
...
Ошибка:
Uncaught TypeError: Cannot read property 'transformExtent' of undefined
package.json:
"scripts": {
"watch": "watchify -g [ babelify --presets [ \"@babel/preset-env\" ] ] client/js/main.js -o public/bundle.js -v ",
Почему