Skip to content

Commit 543ea26

Browse files
authored
Optimize docs build performance (#5228)
1 parent d349e85 commit 543ea26

File tree

23 files changed

+1037
-691
lines changed

23 files changed

+1037
-691
lines changed

.parcelrc

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@
1919
"namers": ["parcel-namer-docs", "..."],
2020
"packagers": {
2121
"*.json": "parcel-packager-docs",
22-
"*.html": "@parcel/packager-js"
22+
"*.html": "parcel-packager-ssg"
2323
},
2424
"optimizers": {
25-
"*.html": ["parcel-optimizer-ssg", "..."],
2625
"*.js": ["@parcel/optimizer-terser"]
2726
}
2827
}

package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@
7272
"@babel/preset-typescript": "^7.12.7",
7373
"@babel/register": "^7.12.10",
7474
"@octokit/rest": "*",
75-
"@parcel/optimizer-data-url": "^2.9.1",
75+
"@parcel/optimizer-data-url": "^2.10.0",
7676
"@parcel/optimizer-terser": "2.9.1",
77-
"@parcel/packager-ts": "^2.9.1",
78-
"@parcel/resolver-glob": "^2.9.1",
79-
"@parcel/transformer-inline": "^2.9.1",
80-
"@parcel/transformer-inline-string": "^2.9.1",
81-
"@parcel/transformer-svg-react": "^2.9.1",
82-
"@parcel/transformer-typescript-types": "^2.9.1",
77+
"@parcel/packager-ts": "^2.10.0",
78+
"@parcel/resolver-glob": "^2.10.0",
79+
"@parcel/transformer-inline": "^2.10.0",
80+
"@parcel/transformer-inline-string": "^2.10.0",
81+
"@parcel/transformer-svg-react": "^2.10.0",
82+
"@parcel/transformer-typescript-types": "^2.10.0",
8383
"@spectrum-css/component-builder": "^1.0.0",
8484
"@spectrum-css/vars": "^2.3.0",
8585
"@storybook/addon-a11y": "^6.5.12",
@@ -147,7 +147,7 @@
147147
"npm-cli-login": "^1.0.0",
148148
"nyc": "^10.2.0",
149149
"p-queue": "^6.2.1",
150-
"parcel": "^2.9.2",
150+
"parcel": "^2.10.0",
151151
"patch-package": "^6.2.0",
152152
"plop": "^2.4.0",
153153
"postcss": "^8.4.24",

packages/@react-spectrum/button/src/Button.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function Button<T extends ElementType = 'button'>(props: SpectrumButtonProps<T>,
5454
props = useSlotProps(props, 'button');
5555
props = disablePendingProps(props);
5656
let {
57-
elementType: ElementType = 'button',
57+
elementType: Element = 'button',
5858
children,
5959
variant,
6060
style = variant === 'accent' || variant === 'cta' ? 'fill' : 'outline',
@@ -100,7 +100,7 @@ function Button<T extends ElementType = 'button'>(props: SpectrumButtonProps<T>,
100100

101101
return (
102102
<FocusRing focusRingClass={classNames(styles, 'focus-ring')} autoFocus={autoFocus}>
103-
<ElementType
103+
<Element
104104
{...styleProps}
105105
{...mergeProps(buttonProps, hoverProps)}
106106
ref={domRef}
@@ -143,7 +143,7 @@ function Button<T extends ElementType = 'button'>(props: SpectrumButtonProps<T>,
143143
? <Text>{children}</Text>
144144
: children}
145145
</SlotProvider>
146-
</ElementType>
146+
</Element>
147147
</FocusRing>
148148
);
149149
}

packages/dev/parcel-namer-docs/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"private": true,
55
"main": "DocsNamer.js",
66
"engines": {
7-
"parcel": "^2.9.2"
7+
"parcel": "^2.10.0"
88
},
99
"dependencies": {
10-
"@parcel/plugin": "^2.9.2"
10+
"@parcel/plugin": "^2.10.0"
1111
}
1212
}

packages/dev/parcel-optimizer-ssg/SSGOptimizer.js

-115
This file was deleted.

packages/dev/parcel-optimizer-ssg/package.json

-16
This file was deleted.

0 commit comments

Comments
 (0)