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.

Consuming externally compiled files and maintaining their connection to sources

See original GitHub issue
components: {
  parse: './node_modules/my-lib/src/**/*.jsx',
  load: './node_modules/my-lib/dist/**/*.js',
  css: './node_modules/my-lib/dist/**/*.css'
}

It would help to use already builded components for demo purposes and sources to parse with react-docgen

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:19 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
mik01ajcommented, Mar 31, 2016

I read your comment 3 times and I still don’t understand what you’re trying to do and what is your problem.

1reaction
mik01ajcommented, Mar 31, 2016

Ah, I think that now I finally understand your point.

You want to compile your jsx to js with some tool outside styleguidist (be it webpack, babel or anything), and then you want styleguidist to consume these compiled files instead of compiling them again. Correct?

That’s a fair point, and it should be possible to do it by rewriting some paths for webpack. But on the other hand, I’m not sure if people actually do this often in their projects. In the cases I’ve seen, there is no separation between transpiling and bundling step, and the individual transpiled files are not saved anywhere. So I’m not sure there is a great need for this. What you propose would be cleaner and faster for your project, but I’m not sure it will be that useful for the general public.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is an Application Programming Interface (API)? - IBM
An application programming interface, or API, enables companies to open up their applications' data and functionality to external third-party ...
Read more >
GitLab CI/CD for external repositories
Connect to an external repository. To connect to an external repository: In GitLab, on the top bar, select Main menu > Projects >...
Read more >
Using Lambda with self-managed Apache Kafka
Learn how to use a self-managed Apache Kafka cluster as an event source for Lambda.
Read more >
Documentation - Module Resolution - TypeScript
First, the compiler will try to locate a file that represents the imported module. To do so the compiler follows one of two...
Read more >
API - esbuild
External paths are applied both before and after path resolution, which lets you match against both the import path in the source code...
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