Refactor: Move code of lib/manager-api into ui/manager#23389
Closed
ndelangen wants to merge 11 commits into
Closed
Refactor: Move code of lib/manager-api into ui/manager#23389ndelangen wants to merge 11 commits into
lib/manager-api into ui/manager#23389ndelangen wants to merge 11 commits into
Conversation
|
No top level dependency changes detected. Learn more about Socket for GitHub ↗︎ |
Contributor
|
This is interesting, looks good. Is the long term plan that we'd then remove the I don't quite understand what you mean by the following:
|
Member
Author
|
@JReinhold what it means is:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
hyper experimental: move the actual code into
ui/managerbut keeplib/manager-apia real package with types.Long term strategy: move all code into a single package.
This has upside of making building
manager-apiunnecessary during storybookmaintenance.the downside is that building
manageris slower.But it's a step into the right direction, I think.
Importantly this does not mean
manager-apigets deprecated as a package.It's still a package users depend on and use.
What's novel about this approach is that it doesn't need a builder to globalize
manager-api! It's builder independent, because the package itself gets the implementation from the global scope.This has a big downside:
It will only work within the browser, and only when the prebundles code is pre-injected.
You can see the effects of this in some of the tests I had to adjust.
So this is a proof of concept of the idea that we could make packages be externalised without needing to set this up in builders.