mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
* Upgrade to Gatsby v2 * Remove unnecessary polyfills since gatsby already provides them * Move global styles to gatsby-browser * Add fb comment and convert to cjs * Revert to use pageQuery again * Add back html.js * Update dependencies * Move TitleAndMetaTags * Replace glamor/reset with normalize.css which fixes style order in prod * Prettier formatting * Remove unused types * Remove old layout * Fix versions link * Update deps * Update deps * Remove hack since it's no longer needed * Update dependencies * Fix build error * Fix prettier config resolution * Update gatsby * Remove custom onCreatePage logic * Update dependencies * Fix build * Update dependencies * prettier formatting * update dependencies * add custom babel config for flow * upgrade dependencies * update dependencies * use stable gatsby release
41 lines
728 B
Plaintext
41 lines
728 B
Plaintext
{
|
|
"presets": [
|
|
[
|
|
"@babel/preset-env",
|
|
{
|
|
"loose": true,
|
|
"modules": false,
|
|
"useBuiltIns": "usage",
|
|
"shippedProposals": true,
|
|
"targets": {
|
|
"browsers": [">0.25%", "not dead"],
|
|
}
|
|
}
|
|
],
|
|
[
|
|
"@babel/preset-react",
|
|
{
|
|
"useBuiltIns": true,
|
|
"pragma": "React.createElement",
|
|
}
|
|
],
|
|
"@babel/flow"
|
|
],
|
|
"plugins": [
|
|
[
|
|
"@babel/plugin-proposal-class-properties",
|
|
{
|
|
"loose": true
|
|
}
|
|
],
|
|
"@babel/plugin-syntax-dynamic-import",
|
|
"babel-plugin-macros",
|
|
[
|
|
"@babel/plugin-transform-runtime",
|
|
{
|
|
"helpers": true,
|
|
"regenerator": true
|
|
}
|
|
]
|
|
]
|
|
} |