This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
☂️ Dependencies analysis #4549
Labels
A-Compiler
Area: compiler
A-Project
Area: project configuration and loading
A-resolver
Area: module resolution
umbrella
Issue to track a collection of other issues
Milestone
Description
Create a new crate to analyze the dependencies of a JavaScript project.
Since we don't support CSS, the crate will initially work only with JavaScript files.
I don't have a clear idea yet of how to break down the work; any input on this umbrella will be of great help.
Some initial thoughts:
Workspace
. Project analysis requires reading files from disk. Currently, thedyn FileSystem
is created and passed to Rome as an argument, but eventually, the file is processed by theWorkspace
without the need for the file system. We have an internal cache where we save the content of a document and its AST. There are few options we can evaluate:FileSystem
to the workspace. This is the best solution, although we need to find a way to make it thread-safe, because theWorkspace
is safe across thread boundaries and can't panic.tsconfig.json
support, which we lack - we need support comments in JSON files, e.g. feat: 🎸 allow comments in json file #4382rome_js_analyze
or we could think about having a new crate.The text was updated successfully, but these errors were encountered: