Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docusaurus 3.6 with Rspack #4460

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/babel-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@babel/preset-typescript": "7.23.2",
"babel-loader": "8.2.2",
"react-refresh": "0.9.0",
"webpack": "5.94.0"
"webpack": "5.96.1"
},
"devDependencies": {
"@remotion/bundler": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/bundler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@remotion/studio-shared": "workspace:*",
"style-loader": "2.0.0",
"source-map": "0.7.3",
"webpack": "5.94.0"
"webpack": "5.96.1"
},
"peerDependencies": {
"react": ">=16.8.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"react": "18.3.1",
"react-dom": "18.3.1",
"vitest": "0.31.1",
"webpack": "5.94.0",
"webpack": "5.96.1",
"zod": "3.22.3",
"@remotion/eslint-config-internal": "workspace:*",
"eslint": "9.14.0"
Expand Down
9 changes: 9 additions & 0 deletions packages/docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ const config = (mode) => ({
favicon: 'img/favicon.png',
organizationName: 'remotion-dev', // Usually your GitHub org/user name.
projectName: 'remotion', // Usually your repo name.
future: {
experimental_faster: true,
},
webpack: {
jsLoader: (isServer) => ({
loader: require.resolve('swc-loader'),
Comment on lines 19 to 21
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can remove this, this is used instead of the built-in Rspack SWC loader and actually slow things down by introducing a "js bridge" in between 2 rust things 😅

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Testing with #4462

Expand Down Expand Up @@ -254,6 +257,8 @@ const config = (mode) => ({
showLastUpdateTime: true,
},
blog: {
onInlineAuthors: 'ignore',
onUntruncatedBlogPosts: 'ignore',
path:
mode === 'complete' ? undefined : 'intentionally-not-existing-path',
showReadingTime: true,
Expand Down Expand Up @@ -297,6 +302,8 @@ const config = (mode) => ({
*/
path: './success-stories',
blogSidebarTitle: 'Success stories',
onUntruncatedBlogPosts: 'ignore',
onInlineAuthors: 'ignore',
},
],
[
Expand All @@ -316,6 +323,8 @@ const config = (mode) => ({
*/
path: './learn',
blogSidebarTitle: 'Learn',
onUntruncatedBlogPosts: 'ignore',
onInlineAuthors: 'ignore',
},
],
'./route-plugin',
Expand Down
15 changes: 8 additions & 7 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"docusaurus": "docusaurus",
"start": "docusaurus start --host 0.0.0.0",
"start-docs": "docusaurus start",
"build-docs": "node --max_old_space_size=16000 node_modules/@docusaurus/core/bin/docusaurus.mjs build && bun count-pages.ts",
"build-docs": "DOCUSAURUS_IGNORE_SSG_WARNINGS=true node --max_old_space_size=16000 node_modules/@docusaurus/core/bin/docusaurus.mjs build && bun count-pages.ts",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"serve": "docusaurus serve",
Expand All @@ -23,12 +23,13 @@
"@algora/sdk": "^0.1.2",
"@aws-sdk/s3-request-presigner": "3.645.0",
"@babel/plugin-transform-modules-commonjs": "^7.15.4",
"@docusaurus/core": "3.4.0",
"@docusaurus/plugin-content-blog": "3.4.0",
"@docusaurus/plugin-google-gtag": "3.4.0",
"@docusaurus/preset-classic": "3.4.0",
"@docusaurus/theme-common": "3.4.0",
"@docusaurus/types": "3.4.0",
"@docusaurus/core": "3.6.0",
"@docusaurus/plugin-content-blog": "3.6.0",
"@docusaurus/plugin-google-gtag": "3.6.0",
"@docusaurus/preset-classic": "3.6.0",
"@docusaurus/theme-common": "3.6.0",
"@docusaurus/faster": "3.6.0",
"@docusaurus/types": "3.6.0",
"@mdx-js/react": "3.0.1",
"@remotion-dev/cube-presentation": "https://www.remotion.pro/pkg/cube-transition/1.0.1/docs",
"@remotion/animated-emoji": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"fenceparser": "^2.2.0",
"shiki": "0.10.1",
"@typescript/twoslash": "3.2.1",
"@docusaurus/types": "3.4.0",
"@docusaurus/types": "3.6.0",
"@types/dom-webcodecs": "0.1.11"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/gif/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"esbuild": "0.18.6",
"react": "18.3.1",
"react-dom": "18.3.1",
"webpack": "5.94.0",
"webpack": "5.96.1",
"@remotion/eslint-config-internal": "workspace:*",
"eslint": "9.14.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/player/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"csstype": "^3.1.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"webpack": "5.94.0",
"webpack": "5.96.1",
"zod": "3.22.3",
"@remotion/eslint-config-internal": "workspace:*",
"eslint": "9.14.0"
Expand Down
Loading
Loading