Consuming externally compiled files and maintaining their connection to sources
See original GitHub issuecomponents: {
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:
- Created 7 years ago
- Comments:19 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I read your comment 3 times and I still don’t understand what you’re trying to do and what is your problem.
Ah, I think that now I finally understand your point.
You want to compile your
jsx
tojs
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.