Skip to content

Commit

Permalink
refactor: adopt rspack, SWC
Browse files Browse the repository at this point in the history
  • Loading branch information
zlataovce committed Nov 4, 2024
1 parent 5e8d676 commit 2872c53
Show file tree
Hide file tree
Showing 3 changed files with 730 additions and 569 deletions.
10 changes: 2 additions & 8 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,8 @@ const config: Config = {
require.resolve("@fontsource/jetbrains-mono/index.css"),
],

webpack: {
jsLoader: (isServer) => ({
loader: require.resolve("esbuild-loader"),
options: {
loader: "tsx",
target: isServer ? "node12" : "es2017",
},
}),
future: {
experimental_faster: true,
},

headTags: [
Expand Down
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"dependencies": {
"@docusaurus/core": "3.6.0",
"@docusaurus/faster": "^3.6.0",
"@docusaurus/plugin-content-docs": "3.6.0",
"@docusaurus/plugin-content-pages": "3.6.0",
"@docusaurus/plugin-debug": "3.6.0",
Expand Down Expand Up @@ -48,14 +49,10 @@
"@types/js-yaml": "^4.0.9",
"@types/node": "20.14.2",
"@types/react": "^18.2.79",
"esbuild": "^0.20.2",
"esbuild-loader": "4.1.0",
"esbuild-register": "3.5.0",
"is-ci": "3.0.1",
"prettier": "3.3.1",
"regenerator-runtime": "0.14.1",
"typescript": "5.4.5",
"webpack": "^5.91.0"
"typescript": "5.4.5"
},
"browserslist": {
"production": [
Expand Down
Loading

0 comments on commit 2872c53

Please sign in to comment.