question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build instructions for normal modules.

See original GitHub issue

It seems all the build instructions are for various build tools, but I’m not using any for my project. I’d like some build instructions that allow me to use this with normal JS modules (in particular, inside web components).

Expected interface to import would be something like:

import("./ol.js").then((ol) => {
    ol.Map(...);
});

Trying this with the pre-built dist version doesn’t work. I’d also like to explicitly choose what components should be included in the built version, in order to have a slim production build.

Any clues on how to build such a bundle would be great.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:21 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ahocevarcommented, Sep 3, 2021

That’s indeed not possible, as long as our dependencies (like rbush) are not published as ES modules.

0reactions
stale[bot]commented, Apr 16, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MODULES WITH BUILDING INSTRUCTIONS
Building a LEGO ball machine has never been easier! Discover Balance, the second LEGO Great Ball Contraption module of the GBC4ALL series: easy...
Read more >
Deluxe Power Module Assembly Instructions
Populate the flat resistor first, then turn over on a firm surface to solder and clip leads. Then bend over the leads of...
Read more >
Building Android
As explained above, you can build specific modules instead of the full device image by listing their names in your m command line....
Read more >
What's a GBC? Start with our building instructions!
Build Great Ball Contraptions from existing LEGO sets. Get the building instructions and start engineering today ... A GBC is an elegant ballet...
Read more >
Build Instructions - AmphetaDesk - disobey.com
On Linux systems, you can run perl -MCPAN -eshell and then install Module::Name to install specific modules. On Windows, you'd use the ActiveState...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found