You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds build:react-components just-task to be used by v9 packages. The key difference here and the normal build task 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 of babel to transform griffel related code. Transpiling to cjs or amd will now use the already transpiled esm code output from SWC as a workaround to the issue where our griffel babel-preset is unable to directly parse cjs code transpiled by SWC (tracking PR of ongoing work for this). This method allows for @griffel/babel-preset to still parse code as expected since it has no trouble transforming esm transpiled code from SWC. feat(tools): scripts and generator updates to enable SWC transpilation for v9 packages #26527
Export withFluentProvider from @fluentui/react-storybook-addon package and explicitly declare it in the @fluentui/vr-tests-react-components storybook preview.js file so that the decorator is applied when storybook compiles via build-storybook script (comment where this workaround was discovered in test). Fix issue causing @fluentui/storybook-addon to not be properly applied during build-storybook script feat(scripts-storybook): unify workspace addon loading for dev and prod builds #27006
ISSUE
Migrate v9 transpilation tooling to be based on browser support matrix. Use either
swcorbabelto replacetstranspilation to esm and commonjs.Steps:
migrate-converged-pkggenerator to add an.swcrcfile to each v9 package which will containbrowserlistdata based on the full browser support matrix of v9. feat(tools): scripts and generator updates to enable SWC transpilation for v9 packages #26527build: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. feat(tools): scripts and generator updates to enable SWC transpilation for v9 packages #26527swctranspilation. chore(v9 packages): Migrate to SWC transpilation approach #27250Export. 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 feat(scripts-storybook): unify workspace addon loading for dev and prod builds #27006puppeteerto v19 to mitigate unresponsive perf-tests: chore: prerequisite changes before migrating v9 packages to SWC based transpilation #26965create-packagetemplates. chore (scripts): update create-package plop templates to use swc/helpers in deps #27286Long term:
es2019.swcrcfiles to use browser matrix target. chore(v9 packages): Migrate to SWC browser matrix based transpilation #27036