chore: 📦 enable ESBUILD for site again (#24657)

* 📦 enable ESBUILD for site again

* re-enable ESBUILD 📦
This commit is contained in:
偏右 2020-06-01 19:29:58 +08:00 committed by GitHub
parent 18e3e42120
commit b83c8636fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 7 deletions

View File

@ -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

View File

@ -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>

View File

@ -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>
</>

View File

@ -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\"",

View File

@ -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);