Skip to content

Commit bb7fe12

Browse files
authored
feat: replaced Babel to SWC (#2105)
1 parent 7da851d commit bb7fe12

File tree

5 files changed

+387
-5
lines changed

5 files changed

+387
-5
lines changed

babel.config.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

docusaurus.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,15 @@ const config: Config = {
3838
"Databend - Your best alternative to Snowflake. Cost-effective and simple for massive-scale analytics.",
3939
url: docsHomeLink,
4040
baseUrl: "/",
41+
onBrokenAnchors: "ignore",
4142
onBrokenLinks: "throw",
4243
onBrokenMarkdownLinks: "throw",
4344
favicon: "img/rect-icon.png",
4445
organizationName: "DatabendLabs",
4546
projectName: 'Databend', // Usually your repo name.
47+
future: {
48+
experimental_faster: true,
49+
},
4650
// Even if you don't use internationalization, you can use this field to set
4751
// useful metadata like html lang. For example, if your site is Chinese, you
4852
// may want to replace "en" with "zh-Hans".

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"dependencies": {
3232
"@ant-design/icons": "^5.3.7",
3333
"@docusaurus/core": "^3.7.0",
34+
"@docusaurus/faster": "^3.7.0",
3435
"@docusaurus/plugin-client-redirects": "^3.7.0",
3536
"@docusaurus/preset-classic": "^3.7.0",
3637
"@docusaurus/theme-mermaid": "^3.7.0",

src/theme/NavbarItem/NavbarNavLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default function NavbarNavLink({
4747
// TODO all this seems hacky
4848
// {to: 'version'} should probably be forbidden, in favor of {to: '/version'}
4949
const toUrl = useBaseUrl(to);
50-
console.log(toUrl);
50+
// console.log(toUrl);
5151
const activeBaseUrl = useBaseUrl(activeBasePath);
5252
const normalizedHref = useBaseUrl(href, { forcePrependBaseUrl: true });
5353
const isExternalLink = label && href && !isInternalUrl(href);

0 commit comments

Comments
 (0)