Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Support import as ES module #33

Open
linusmarco opened this issue Feb 13, 2019 · 2 comments
Open

Support import as ES module #33

linusmarco opened this issue Feb 13, 2019 · 2 comments
Assignees

Comments

@linusmarco
Copy link

Please correct me if I'm wrong, but as far as I can tell, this plugin must be included via a <script> tag and cannot be easily imported into a modern bundled JS application via standard import/require syntax (i.e. import ScalarField from 'leaflet-canvaslayer-field' or const ScalarField = require('leaflet-canvaslayer-field')). Are there any plans to add this feature? If not, I may be able to submit a PR for this

@felipem775
Copy link
Member

Hi @linusmarco , You are right, the plugin must be included via script tag.
PR are welcome :)

@linusmarco
Copy link
Author

Okay, cool. I'll put together a PR soon. Feel free to assign this to me

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants