Skip to content

Move turf require inside GET_VECTOR_INFO reducer#1335

Merged
mbarto merged 1 commit into
geosolutions-it:masterfrom
sourcepole:turf
Dec 12, 2016
Merged

Move turf require inside GET_VECTOR_INFO reducer#1335
mbarto merged 1 commit into
geosolutions-it:masterfrom
sourcepole:turf

Conversation

@manisandro

Copy link
Copy Markdown
Contributor

This allows the turf modules to be ignored when creating the webpack bundle by adding

new webpack.IgnorePlugin(/^(turf*)$/)

to the plugins in webpack.config.js, saving around 0.5 MB from the resulting optimized build (mostly thanks to not pulling in the jsts modules). This clearly implies that the application promises to never attempt to identify a vector layer feature.

@simboss simboss added the ready label Dec 7, 2016
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.09%) to 80.271% when pulling df92474 on sourcepole:turf into bdeb615 on geosolutions-it:master.

@mbarto mbarto merged commit 35cdb7f into geosolutions-it:master Dec 12, 2016
@mbarto mbarto removed the ready label Dec 12, 2016
@manisandro manisandro deleted the turf branch December 12, 2016 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants