-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Build: Fix components exports after refactor #957
Conversation
Yep. Sidebar is opening fine, things seem to be working! Thanks for fixing this so quick. No JS errors. 👍 |
@@ -3,6 +3,8 @@ export { default as Dashicon } from './dashicon'; | |||
export { default as FormToggle } from './form-toggle'; | |||
export { default as IconButton } from './icon-button'; | |||
export { default as Panel } from './panel'; | |||
export { default as PanelHeader } from './panel/header'; | |||
export { default as PanelBody } from './panel/body'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to treat nested components the same as top-level? Wondering if either Panel.Body
or import PanelBody from 'components/panel/header';
are better alternatives.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem with import PanelBody from 'components/panel/header'
is that it will cause the code to be duplicated across builds. This may be solvable via some trick I don't know about, see #941.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for context @nylen . I'm finding I'm reading the sequence of these pull requests very much out of order 😛
Thanks for fixing this, and sorry for the breakage 😬 |
Is there still work to be done for #944 ? |
No, I think this is addressed via https://github.com/WordPress/gutenberg/pull/935/files#diff-512a8a050d031aaf7a1c47fb4f2a9656R10. |
Refactoring the components module build, broke some components. (Try opening the sidebar)
This should fix it
See #929 (comment)