-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Use example-data package and fix other example imports #10280
Conversation
Component Perf AnalysisNo significant results to display. All results
|
packages/example-app-base/src/components/CodepenComponent/CodepenComponent.tsx
Show resolved
Hide resolved
Marking as do not merge while I resolve an issue with the codepen loader. |
const importStatementRegex = /^import [{} a-zA-Z0-9_,*\r?\n ]*(?:from )?['"]{1}([.\/a-zA-Z0-9_@\-]+)['"]{1};.*$/; | ||
const pkgNameRegex = /^(@[a-z\-]+\/[a-z\-]+)|([a-z\-]+)/; | ||
const importStatementGlobalRegex = /^import [^'"]*(?:from )?['"]([^'"]+)['"];.*$/gm; | ||
const importStatementRegex = /^import [^'"]*(?:from )?['"]([^'"]+)['"];.*$/; |
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.
Is there a fix here or is this just optimization of the same searches? (I'm sure you've tested but wanted to make sure they were still working.)
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.
Optimization. Based on running the script and on these tests it seems to work fine. https://regex101.com/r/XWQ4Eq/1
'@uifabric/merge-styles': 'Styling', | ||
'@uifabric/styling': 'Styling', | ||
'@uifabric/utilities': 'Utilities' | ||
}; |
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 mentioning:
I'll have to update our Fabric 7 + ODSP branch to reflect the above change. |
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 removal of data exports from example-app-base
is a breaking change for consumers (ODSP). Can we leave the export removal for at least a major release?
I can revert that part--though those things arguably shouldn't have been exported to begin with, and example-app-base has never had the same API stability guarantees as our primary libraries. (I finally updated the example-app-base readme to note that.) |
Asset size changes
Over Tolerance (1024 B) Over Baseline Below Baseline New Removed 1 kB = 1000 B Baseline commit: 7a493e8a0915fd826cef36e70891979d09ca9b46 (build) |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
Pull request checklist
$ yarn change
Description of changes
Fix example imports:
@uifabric/example-data
package everywhere that was previously using the old example data filesAnd the corresponding updates to the
lint-imports
script:And other example-related issues:
Microsoft Reviewers: Open in CodeFlow