Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upProposal for how to update deps, build the OpenLayers-using JS with webpack #2329
Conversation
|
This revealed a minor gremlin in the latest OpenLayers. I have opened a PR to fix that: openlayers/openlayers#11224 |
|
On the whole, I'm in favour of updating our deps. Is there a compelling reason not to use |
|
That is an excellent idea! Much more JS-idiomatic. The existing |
|
Using package.json/yarn would be reasonable, but our deployment doesn't handle that at this time, so it would need some puppet work. |
|
I think, for the time being, we could update https://classic.yarnpkg.com/en/docs/cli/install/#toc-yarn-install-modules-folder @mohawk2 it should just be a matter of running |
|
Now there is a This PR should also show the way towards auto-building / updating all our other JS code too (move them into |
|
This requires committing build artifacts to the repository, which I am not a fan of. It also doesn't set up the built files to be properly cacheable. What errors were you seeing with the tooltip and dropdown menu code? I don't see any errors, but either way just wrapping them in a try is the wrong approach. |
|
It seems the tooltip/dropdown errors were just caused by the map having failed to load due to other problems. They don't appear now, and the JS changes to suppress them have been dropped. This PR is now in somewhat of an intermediate state - it updates the vendored and versioned |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

mohawk2 commentedJun 26, 2020
This will hopefully resolve the last CodeQL-identified issue in our JS.