mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-05 23:46:28 +08:00
chore: 📦 enable ESBUILD for site again (#24657)
* 📦 enable ESBUILD for site again * re-enable ESBUILD 📦
This commit is contained in:
parent
18e3e42120
commit
b83c8636fa
2
.github/workflows/lighthouse-ci.yml
vendored
2
.github/workflows/lighthouse-ci.yml
vendored
@ -7,5 +7,5 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
- run: npm install && npm install -g @lhci/cli@0.4.x
|
||||
- run: ESBUILD=1 npm run site
|
||||
- run: npm run site
|
||||
- run: lhci autorun --upload.target=temporary-public-storage
|
||||
|
@ -417,7 +417,6 @@ Array [
|
||||
Disabled
|
||||
</span>
|
||||
</label>,
|
||||
<br />,
|
||||
<label
|
||||
class="ant-radio-wrapper ant-radio-wrapper-disabled"
|
||||
>
|
||||
@ -438,9 +437,10 @@ Array [
|
||||
Disabled
|
||||
</span>
|
||||
</label>,
|
||||
<br />,
|
||||
<button
|
||||
class="ant-btn ant-btn-primary"
|
||||
style="margin-top:20px"
|
||||
style="margin-top:16px"
|
||||
type="button"
|
||||
>
|
||||
<span>
|
||||
|
@ -33,11 +33,11 @@ class App extends React.Component {
|
||||
<Radio defaultChecked={false} disabled={this.state.disabled}>
|
||||
Disabled
|
||||
</Radio>
|
||||
<br />
|
||||
<Radio defaultChecked disabled={this.state.disabled}>
|
||||
Disabled
|
||||
</Radio>
|
||||
<Button type="primary" onClick={this.toggleDisabled} style={{ marginTop: 20 }}>
|
||||
<br />
|
||||
<Button type="primary" onClick={this.toggleDisabled} style={{ marginTop: 16 }}>
|
||||
Toggle disabled
|
||||
</Button>
|
||||
</>
|
||||
|
@ -78,7 +78,7 @@
|
||||
"pretty-quick": "pretty-quick",
|
||||
"pub": "npm run version && antd-tools run pub",
|
||||
"prepublishOnly": "antd-tools run guard",
|
||||
"site": "cross-env NODE_ICU_DATA=node_modules/full-icu concurrently \"bisheng build --ssr -c ./site/bisheng.config.js\" \"npm run color-less\"",
|
||||
"site": "cross-env NODE_ICU_DATA=node_modules/full-icu ESBUILD=1 concurrently \"bisheng build --ssr -c ./site/bisheng.config.js\" \"npm run color-less\"",
|
||||
"sort": "npx sort-package-json",
|
||||
"sort-api": "antd-tools run sort-api-table",
|
||||
"start": "antd-tools run clean && cross-env NODE_ENV=development concurrently \"npm run color-less\" \"bisheng start -c ./site/bisheng.config.js\"",
|
||||
|
@ -108,7 +108,9 @@ class MainContent extends Component {
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
this.scroller.destroy();
|
||||
if (this.scroller) {
|
||||
this.scroller.destroy();
|
||||
}
|
||||
window.removeEventListener('load', this.handleInitialHashOnLoad);
|
||||
window.removeEventListener('hashchange', this.handleHashChange);
|
||||
clearTimeout(this.timeout);
|
||||
|
Loading…
Reference in New Issue
Block a user