-
-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tsup
's code splitting feature makes core packages difficult to debug
#4333
Comments
tsup
's code splitting feature makes core packages difficult to debug
I did some investigation into how we might be able to solve this problem. Ideally, the build process should work like this:
Ordinarily, we could fulfill this plan by moving to One question that might come up is: do we really need to use project references?
So it seems like we have one of two paths we can take depending on our decision:
|
## Explanation `ts-bridge` finally supports project references. In this PR, I've swapped out `tsup` for `ts-bridge` everywhere. ## References Related to MetaMask/metamask-module-template#247, MetaMask/utils#182. Closes #4333. ## Checklist - [x] I've updated the test suite for new or updated code as appropriate - [x] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate - [x] I've highlighted breaking changes using the "BREAKING" category above as appropriate
Currently, when
tsup
transpiles code in CommonJS format, it assembles common code into "chunk" files. These files make life difficult for the extension team when they want to debug behavior in acore
package, because they do not necessarily have a 1-to-1 relationship between existing files; they may map to multiple files in the original source code. They are also randomly named. This makes it impossible to know what they contain without opening them.The text was updated successfully, but these errors were encountered: