-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Improve React Fast Refresh in storybook (#7435)
* Improve React Fast Refresh in storybook * Migrate forwardRef syntax to avoid underscores in the name * Resolve storybook versions to a single one * Update docs * Bump version
- Loading branch information
1 parent
b54c0d4
commit 10a43de
Showing
243 changed files
with
2,451 additions
and
4,468 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
{ | ||
"extends": "@parcel/config-default", | ||
"resolvers": ["@parcel/resolver-glob", "parcel-resolver-storybook", "..."], | ||
"extends": "@parcel/config-storybook", | ||
"resolvers": ["@parcel/resolver-glob", "..."], | ||
"transformers": { | ||
"packages/@react-spectrum/s2/{src,stories}/*.{js,mjs,jsm,jsx,es6,cjs,ts,tsx}": ["parcel-transformer-react-docgen-typescript", "..."], | ||
"illustration:*.svg": ["@react-spectrum/parcel-transformer-s2-icon"], | ||
"packages/@react-spectrum/s2/s2wf-icons/**/*.svg": ["@react-spectrum/parcel-transformer-s2-icon"], | ||
"packages/*/*/intl/*.json": ["parcel-transformer-intl"], | ||
// Disable PostCSS from running over style macro output | ||
"packages/@react-spectrum/s2/**/*.css": ["@parcel/transformer-css"], | ||
"*.{js,mjs,jsm,jsx,es6,cjs,ts,tsx}": [ | ||
"@parcel/transformer-js", | ||
"@parcel/transformer-react-refresh-wrap" | ||
], | ||
"packages/@react-spectrum/s2/**/*.svg": ["@parcel/transformer-svg-react"], | ||
"packages/@react-spectrum/s2/**/*.svg": ["@parcel/transformer-svg-react"] | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
{ | ||
"extends": "@parcel/config-default", | ||
"resolvers": ["@parcel/resolver-glob", "parcel-resolver-storybook", "..."], | ||
"extends": "@parcel/config-storybook", | ||
"resolvers": ["@parcel/resolver-glob", "..."], | ||
"transformers": { | ||
"packages/@react-spectrum/s2/{src,stories}/*.{js,mjs,jsm,jsx,es6,cjs,ts,tsx}": ["parcel-transformer-react-docgen-typescript", "..."], | ||
"illustration:*.svg": ["@react-spectrum/parcel-transformer-s2-icon"], | ||
"packages/@react-spectrum/s2/s2wf-icons/**/*.svg": ["@react-spectrum/parcel-transformer-s2-icon"], | ||
"packages/*/*/intl/*.json": ["parcel-transformer-intl"], | ||
// Disable PostCSS from running over style macro output | ||
"packages/@react-spectrum/s2/**/*.css": ["@parcel/transformer-css"], | ||
"*.{js,mjs,jsm,jsx,es6,cjs,ts,tsx}": [ | ||
"@parcel/transformer-js", | ||
"@parcel/transformer-react-refresh-wrap" | ||
], | ||
"packages/@react-spectrum/s2/**/*.svg": ["@parcel/transformer-svg-react"], | ||
"packages/@react-spectrum/s2/**/*.svg": ["@parcel/transformer-svg-react"] | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
{ | ||
"extends": "@parcel/config-default", | ||
"resolvers": ["@parcel/resolver-glob", "parcel-resolver-storybook", "..."], | ||
"extends": "@parcel/config-storybook", | ||
"resolvers": ["@parcel/resolver-glob", "..."], | ||
"transformers": { | ||
"packages/*/*/intl/*.json": ["parcel-transformer-intl"], | ||
"*.{js,mjs,jsm,jsx,es6,cjs,ts,tsx}": [ | ||
"@parcel/transformer-js", | ||
"@parcel/transformer-react-refresh-wrap" | ||
] | ||
"packages/*/*/intl/*.json": ["parcel-transformer-intl"] | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
{ | ||
"extends": "@parcel/config-default", | ||
"resolvers": ["@parcel/resolver-glob", "parcel-resolver-storybook", "..."], | ||
"extends": "@parcel/config-storybook", | ||
"resolvers": ["@parcel/resolver-glob", "..."], | ||
"transformers": { | ||
"packages/*/*/intl/*.json": ["parcel-transformer-intl"], | ||
"*.{js,mjs,jsm,jsx,es6,cjs,ts,tsx}": [ | ||
"@parcel/transformer-js", | ||
"@parcel/transformer-react-refresh-wrap" | ||
], | ||
"raw:*": ["@parcel/transformer-raw"] | ||
} | ||
} |
54 changes: 0 additions & 54 deletions
54
.yarn/patches/storybook-builder-parcel-https-7ea26540e8.patch
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,29 +86,30 @@ | |
"@faker-js/faker": "^8.4.1", | ||
"@jdb8/eslint-plugin-monorepo": "^1.0.1", | ||
"@octokit/rest": "*", | ||
"@parcel/bundler-library": "2.12.0", | ||
"@parcel/config-default": "^2.13.0", | ||
"@parcel/core": "^2.13.0", | ||
"@parcel/optimizer-data-url": "^2.13.0", | ||
"@parcel/optimizer-terser": "^2.13.0", | ||
"@parcel/packager-ts": "^2.13.0", | ||
"@parcel/reporter-cli": "^2.13.0", | ||
"@parcel/resolver-glob": "^2.13.0", | ||
"@parcel/transformer-inline": "^2.13.0", | ||
"@parcel/transformer-inline-string": "^2.13.0", | ||
"@parcel/transformer-svg-react": "^2.13.0", | ||
"@parcel/transformer-typescript-types": "^2.13.0", | ||
"@parcel/bundler-library": "^2.12.1", | ||
"@parcel/config-default": "^2.13.1", | ||
"@parcel/config-storybook": "^0.0.2", | ||
"@parcel/core": "^2.13.1", | ||
"@parcel/optimizer-data-url": "^2.13.1", | ||
"@parcel/optimizer-terser": "^2.13.1", | ||
"@parcel/packager-ts": "^2.13.1", | ||
"@parcel/reporter-cli": "^2.13.1", | ||
"@parcel/resolver-glob": "^2.13.1", | ||
"@parcel/transformer-inline": "^2.13.1", | ||
"@parcel/transformer-inline-string": "^2.13.1", | ||
"@parcel/transformer-svg-react": "^2.13.1", | ||
"@parcel/transformer-typescript-types": "^2.13.1", | ||
"@react-spectrum/s2-icon-builder": "^0.2.0", | ||
"@spectrum-css/component-builder": "1.0.1", | ||
"@spectrum-css/vars": "^2.3.0", | ||
"@storybook/addon-a11y": "patch:@storybook/addon-a11y@npm%3A7.6.19#~/.yarn/patches/@storybook-addon-a11y-npm-7.6.19-04b470eae0.patch", | ||
"@storybook/addon-a11y": "patch:@storybook/addon-a11y@npm%3A^7.6.19#~/.yarn/patches/@storybook-addon-a11y-npm-7.6.19-04b470eae0.patch", | ||
"@storybook/addon-actions": "^7.6.19", | ||
"@storybook/addon-controls": "^7.6.19", | ||
"@storybook/addon-essentials": "7.6.19", | ||
"@storybook/addon-interactions": "7.6.19", | ||
"@storybook/addon-essentials": "^7.6.19", | ||
"@storybook/addon-interactions": "^7.6.19", | ||
"@storybook/addon-links": "^7.6.19", | ||
"@storybook/addon-onboarding": "1.0.8", | ||
"@storybook/addon-themes": "7.6.19", | ||
"@storybook/addon-themes": "^7.6.19", | ||
"@storybook/api": "^7.6.19", | ||
"@storybook/components": "^7.6.19", | ||
"@storybook/manager-api": "^7.6.19", | ||
|
@@ -176,9 +177,8 @@ | |
"npm-cli-login": "^1.0.0", | ||
"nyc": "^10.2.0", | ||
"p-queue": "^6.2.1", | ||
"parcel": "^2.13.0", | ||
"parcel": "^2.13.1", | ||
"parcel-optimizer-strict-mode": "workspace:^", | ||
"parcel-resolver-storybook": "https://gitpkg.vercel.app/mischnic/storybook-parcel/packages/parcel-resolver-storybook?master", | ||
"patch-package": "^6.2.0", | ||
"playwright": "^1.45.3", | ||
"plop": "^2.4.0", | ||
|
@@ -199,9 +199,8 @@ | |
"sharp": "^0.33.5", | ||
"sinon": "^7.3.1", | ||
"storybook": "^7.6.19", | ||
"storybook-builder-parcel": "patch:storybook-builder-parcel@https%3A//gitpkg.vercel.app/mischnic/storybook-parcel/packages/storybook-builder-parcel?master#~/.yarn/patches/storybook-builder-parcel-https-7ea26540e8.patch", | ||
"storybook-dark-mode": "^3.0.3", | ||
"storybook-react-parcel": "https://gitpkg.vercel.app/mischnic/storybook-parcel/packages/storybook-react-parcel?master", | ||
"storybook-react-parcel": "^0.0.1", | ||
"tailwind-variants": "^0.1.18", | ||
"tailwindcss": "^3.4.0", | ||
"tailwindcss-animate": "^1.0.7", | ||
|
@@ -228,8 +227,6 @@ | |
"remark-parse": "10.0.1", | ||
"browserslist": "4.24.0", | ||
"caniuse-lite": "1.0.30001563", | ||
"@storybook/core-common": "7.6.19", | ||
"storybook-builder-parcel/@storybook/core-common": "7.6.19", | ||
"@types/react": "npm:[email protected]", | ||
"@types/react-dom": "npm:[email protected]", | ||
"recast": "0.23.6", | ||
|
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
10a43de
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.
Verdaccio builds:
CRA Test App
NextJS Test App
RAC Tailwind Example
RAC Spectrum + Tailwind Example
S2 Parcel Example
S2 Webpack Example
CRA Test App Size
NextJS App Size
Publish stats
Size diff since last release
Docs
Storybook
S2 Storybook