Closed ahocevar closed 3 years ago
This needs more work, or a fix in txml
. Aliasing ./node_modules/txml/dist/txml
for txml
is not reliable.
This is now ready for review. txml
is now pulled in correctly for both node and browser use, without aliasing to the node_modules/txml
directory.
@constantinius Until #245 is ready, would it be possible to publish a release with the fixes from this pull request? OpenLayers users continue complaining about issues with geotiff.js, see e.g. openlayers/openlayers#12852. Thanks in advance!
@ahocevar Version 1.0.7 should be available in some minutes, containing the fixes.
This pull request adds an appropriate alias for
txml
inpackage.json
's"browser"
section, fixing the import ingeotiffimage.js
to work correctly in node, and removing the"alias"
section in 'package.json`, which is no longer needed.With this change, txml should work both in node (with
transformStream
) and browsers (using the recommendedtxml/dist/txml
module, see https://github.com/TobiasNickel/tXml/blob/45566897f576558c1c5faaac47f3fdf9177adf49/README.md#installation).Fixes #241.