microsoft / microsoft/fluentui
setup v9 transpilation to be based on browser support minbar
Open
@TristanWatanabe is already working on this.
Since Jan 4, 2023.
Area: Build System
Resolution: Soft Close
Status: Blocked
Type: Epic
- Dominant language
- TypeScript
- Stars
- 20.3k
- Forks
- 2.9k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 46
Description
ISSUE
Migrate v9 transpilation tooling to be based on browser support matrix. Use either swc or babel to replace ts transpilation to esm and commonjs.
Steps:
- Update
migrate-converged-pkggenerator to add an.swcrcfile to each v9 package which will containbrowserlistdata based on the full browser support matrix of v9. #26527 - Adds
build:react-componentsjust-task to be used by v9 packages. The key difference here and the normalbuildtask is that this now splits up transpilation and api-generation as two separate tasks. The transpilation portion uses SWC to transpile code down and then makes use ofbabelto transform griffel related code. Transpiling tocjsoramdwill now use the already transpiledesmcode output from SWC as a workaround to the issue where ourgriffelbabel-preset is unable to directly parsecjscode transpiled by SWC (tracking PR of ongoing work for this). This method allows for@griffel/babel-presetto still parse code as expected since it has no trouble transformingesmtranspiled code from SWC. #26527 - Run migration generator on all v9 library packages to migrate to using
swctranspilation. #27250 -
Export. Fix issue causingwithFluentProviderfrom@fluentui/react-storybook-addonpackage and explicitly declare it in the@fluentui/vr-tests-react-componentsstorybookpreview.jsfile so that the decorator is applied when storybook compiles viabuild-storybookscript (comment where this workaround was discovered in test)@fluentui/storybook-addonto not be properly applied duringbuild-storybookscript #27006 - Pin
puppeteerto v19 to mitigate unresponsive perf-tests: #26965 - Update
create-packagetemplates. #27286
Long term:
- Update migrate-converged-pkg workspace generator to use browser matrix target instead of
es2019 - Run migration generator to update
.swcrcfiles to use browser matrix target. #27036
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.