Skip to content

Importing internal dependencies #786

Description

@thiagoxvo

I am creating a new drawing mode. To avoid reinventing the wheel I would like to reuse some functions that were already implemented in:


@mapbox/mapbox-gl-draw/src/lib/common_selectors
@mapbox/mapbox-gl-draw/src/lib/double_click_zoom

I am using create-react-app and if I try to import any of them and build my project, I have the minification issue:

Failed to minify the code from this file:
    ./node_modules/@mapbox/mapbox-gl-draw/src/lib/double_click_zoom.js:2

I am using:
mapbox-gl-js 0.44.2:
mapbox-gl-draw 1.0.7:

I could send a PR if I get a better understanding how to solve this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions