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

refactor: create @docusaurus/bundler and @docusaurus/babel packages #10511

Merged
merged 25 commits into from
Sep 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
4a145bc
upgrade webpackbar to v6
slorber Sep 19, 2024
b4e71c1
improve dynamic bundler architecture
slorber Sep 19, 2024
bd00c5d
cleanup ContextReplacementPlugin import mess
slorber Sep 19, 2024
45c1126
extract @docusaurus/bundler package
slorber Sep 19, 2024
db5d4ce
revert copy-webpack-plugin version
slorber Sep 19, 2024
b7584cc
package.json typo
slorber Sep 19, 2024
bb48dd8
add tslib
slorber Sep 19, 2024
8dac80f
move minimizers to bundler package
slorber Sep 19, 2024
a3a33d9
move compiler to bundler package
slorber Sep 19, 2024
5d8339b
move clean-css deps
slorber Sep 20, 2024
a386846
move js loader to bundler pkg
slorber Sep 20, 2024
818d835
move style loader and dependencies to bundler pkg
slorber Sep 20, 2024
7fc4c7c
preset comment
slorber Sep 20, 2024
4940034
fix tests
slorber Sep 20, 2024
92ef99d
fix tests
slorber Sep 20, 2024
03a5649
create docusaurus-babel package
slorber Sep 20, 2024
1589f9d
move utils to docusaurus-babel
slorber Sep 20, 2024
785f676
cleanup signature of extractSiteSourceCodeTranslations
slorber Sep 20, 2024
e2fe8dd
migrate translation extraction code to babel package
slorber Sep 20, 2024
f11d38b
fix import typo
slorber Sep 20, 2024
4e4dcaa
move babel-loader dependency for pnp
slorber Sep 20, 2024
c10a955
re-add babel-core deps
slorber Sep 20, 2024
715b700
extract globTranslatableSourceFiles util
slorber Sep 20, 2024
766176b
Use @docusaurus/babel/preset for newly init sites + docs
slorber Sep 20, 2024
3ca28be
add babel pkg to init templates
slorber Sep 20, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"typecheck": "tsc"
},
"dependencies": {
"@docusaurus/babel": "3.5.2",
"@docusaurus/core": "3.5.2",
"@docusaurus/preset-classic": "3.5.2",
"@mdx-js/react": "^3.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/babel": "3.5.2",
"@docusaurus/core": "3.5.2",
"@docusaurus/preset-classic": "3.5.2",
"@mdx-js/react": "^3.0.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
presets: ['@docusaurus/babel/preset'],
};
3 changes: 3 additions & 0 deletions packages/docusaurus-babel/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.tsbuildinfo*
tsconfig*
__tests__
3 changes: 3 additions & 0 deletions packages/docusaurus-babel/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# `@docusaurus/babel`

Docusaurus package for Babel-related utils.
50 changes: 50 additions & 0 deletions packages/docusaurus-babel/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"name": "@docusaurus/babel",
"version": "3.5.2",
"description": "Docusaurus package for Babel-related utils.",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"exports": {
"./preset": {
"types": "./lib/preset.d.ts",
"default": "./lib/preset.js"
},
".": {
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
}
},
"scripts": {
"build": "tsc",
"watch": "tsc --watch"
},
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/facebook/docusaurus.git",
"directory": "packages/docusaurus-babel"
},
"license": "MIT",
"dependencies": {
"@babel/core": "^7.23.3",
"@babel/generator": "^7.23.3",
"@babel/traverse": "^7.22.8",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.22.9",
"@babel/preset-env": "^7.22.9",
"@babel/preset-react": "^7.22.5",
"@babel/preset-typescript": "^7.22.5",
"@babel/runtime": "^7.22.6",
"@babel/runtime-corejs3": "^7.22.6",
"@docusaurus/logger": "3.5.2",
"@docusaurus/utils": "3.5.2",
"babel-plugin-dynamic-import-node": "^2.3.3",
"fs-extra": "^11.1.1",
"tslib": "^2.6.0"
},
"engines": {
"node": ">=18.0"
}
}
Loading
Loading