You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey is it possible to generate the js bundle without all the dependencies? The js bundle from react-openlayers ist huge (1.42MB) and includes react+openlayers itself.
If you try things like this with proj4 in a plain es6/jsx project
import { Controls, Layers, Map, control, layer } from 'react-openlayers';
import React from 'react';
import ol from 'openlayers';
import proj4 from 'proj4';
ol.proj.setProj4(proj4);
proj4.defs(EPSG25833, '+proj=utm +zone=33 +ellps=GRS80 +units=m +no_defs');
it's not possible to get it working, because there are two instances of ol defined in the final bundle. Currently I use my own build from your npm package with webpack-node-externals activated. Would be nice if a smaller bundle could be the default - and then setting the peer dependencies (ol, react, ...) in npm package.json itself.
The text was updated successfully, but these errors were encountered:
Hey is it possible to generate the js bundle without all the dependencies? The js bundle from react-openlayers ist huge (1.42MB) and includes react+openlayers itself.
If you try things like this with proj4 in a plain es6/jsx project
it's not possible to get it working, because there are two instances of ol defined in the final bundle. Currently I use my own build from your npm package with webpack-node-externals activated. Would be nice if a smaller bundle could be the default - and then setting the peer dependencies (ol, react, ...) in npm package.json itself.
The text was updated successfully, but these errors were encountered: