@docusaurus/core 0.0.0-4521 → 0.0.0-4526
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/babel/preset.js +5 -4
- package/lib/client/PendingNavigation.d.ts +3 -3
- package/lib/client/PendingNavigation.js +2 -2
- package/lib/client/baseUrlIssueBanner/BaseUrlIssueBanner.d.ts +8 -0
- package/lib/client/baseUrlIssueBanner/BaseUrlIssueBanner.js +8 -5
- package/lib/client/clientEntry.js +5 -3
- package/lib/client/docusaurus.js +6 -4
- package/lib/client/exports/ComponentCreator.js +4 -1
- package/lib/client/exports/Interpolate.js +9 -13
- package/lib/client/exports/Link.js +4 -3
- package/lib/client/exports/Translate.js +2 -1
- package/lib/client/exports/browserContext.js +2 -1
- package/lib/client/exports/isInternalUrl.js +1 -1
- package/lib/client/preload.d.ts +2 -1
- package/lib/client/preload.js +2 -1
- package/lib/client/serverEntry.js +2 -2
- package/lib/client/theme-fallback/Error/index.js +5 -3
- package/lib/commands/build.js +15 -17
- package/lib/commands/deploy.js +4 -4
- package/lib/commands/external.js +1 -1
- package/lib/commands/serve.js +2 -2
- package/lib/commands/swizzle.js +7 -5
- package/lib/commands/writeHeadingIds.js +12 -13
- package/lib/commands/writeTranslations.js +8 -5
- package/lib/server/brokenLinks.js +14 -9
- package/lib/server/duplicateRoutes.js +2 -4
- package/lib/server/i18n.js +11 -15
- package/lib/server/index.d.ts +1 -1
- package/lib/server/index.js +13 -11
- package/lib/server/moduleShorthand.js +1 -1
- package/lib/server/plugins/index.js +6 -6
- package/lib/server/plugins/init.js +14 -24
- package/lib/server/presets/index.d.ts +2 -2
- package/lib/server/presets/index.js +3 -3
- package/lib/server/routes.js +3 -2
- package/lib/server/themes/index.js +3 -2
- package/lib/server/translations/translations.js +2 -4
- package/lib/server/translations/translationsExtractor.js +17 -14
- package/lib/server/versions/index.js +4 -2
- package/lib/webpack/base.js +23 -15
- package/lib/webpack/client.js +5 -2
- package/lib/webpack/plugins/ChunkAssetPlugin.d.ts +11 -0
- package/lib/webpack/plugins/ChunkAssetPlugin.js +17 -10
- package/lib/webpack/plugins/CleanWebpackPlugin.d.ts +4 -3
- package/lib/webpack/plugins/CleanWebpackPlugin.js +2 -1
- package/lib/webpack/server.js +4 -3
- package/lib/webpack/utils.js +8 -9
- package/package.json +10 -10
package/lib/webpack/utils.js
CHANGED
|
@@ -95,13 +95,12 @@ function getBabelOptions({ isServer, babelOptions, } = {}) {
|
|
|
95
95
|
caller: { name: isServer ? 'server' : 'client' },
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
98
|
+
return {
|
|
99
|
+
...(babelOptions !== null && babelOptions !== void 0 ? babelOptions : { presets: [require.resolve('../babel/preset')] }),
|
|
100
|
+
babelrc: false,
|
|
101
|
+
configFile: false,
|
|
102
|
+
caller: { name: isServer ? 'server' : 'client' },
|
|
103
|
+
};
|
|
105
104
|
}
|
|
106
105
|
exports.getBabelOptions = getBabelOptions;
|
|
107
106
|
// Name is generic on purpose
|
|
@@ -308,8 +307,8 @@ function getMinimizer(useSimpleCssMinifier = false) {
|
|
|
308
307
|
output: {
|
|
309
308
|
ecma: 5,
|
|
310
309
|
comments: false,
|
|
311
|
-
// Turned on because emoji and regex is not minified properly using
|
|
312
|
-
// https://github.com/facebook/create-react-app/issues/2488
|
|
310
|
+
// Turned on because emoji and regex is not minified properly using
|
|
311
|
+
// default. See https://github.com/facebook/create-react-app/issues/2488
|
|
313
312
|
ascii_only: true,
|
|
314
313
|
},
|
|
315
314
|
},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/core",
|
|
3
3
|
"description": "Easy to Maintain Open Source Documentation Websites",
|
|
4
|
-
"version": "0.0.0-
|
|
4
|
+
"version": "0.0.0-4526",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"@babel/runtime": "^7.16.3",
|
|
42
42
|
"@babel/runtime-corejs3": "^7.16.3",
|
|
43
43
|
"@babel/traverse": "^7.16.3",
|
|
44
|
-
"@docusaurus/cssnano-preset": "0.0.0-
|
|
45
|
-
"@docusaurus/logger": "0.0.0-
|
|
46
|
-
"@docusaurus/mdx-loader": "0.0.0-
|
|
44
|
+
"@docusaurus/cssnano-preset": "0.0.0-4526",
|
|
45
|
+
"@docusaurus/logger": "0.0.0-4526",
|
|
46
|
+
"@docusaurus/mdx-loader": "0.0.0-4526",
|
|
47
47
|
"@docusaurus/react-loadable": "5.5.2",
|
|
48
|
-
"@docusaurus/utils": "0.0.0-
|
|
49
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
50
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
48
|
+
"@docusaurus/utils": "0.0.0-4526",
|
|
49
|
+
"@docusaurus/utils-common": "0.0.0-4526",
|
|
50
|
+
"@docusaurus/utils-validation": "0.0.0-4526",
|
|
51
51
|
"@slorber/static-site-generator-webpack-plugin": "^4.0.0",
|
|
52
52
|
"@svgr/webpack": "^6.0.0",
|
|
53
53
|
"autoprefixer": "^10.3.5",
|
|
@@ -105,8 +105,8 @@
|
|
|
105
105
|
"webpackbar": "^5.0.2"
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
109
|
-
"@docusaurus/types": "0.0.0-
|
|
108
|
+
"@docusaurus/module-type-aliases": "0.0.0-4526",
|
|
109
|
+
"@docusaurus/types": "0.0.0-4526",
|
|
110
110
|
"@types/copy-webpack-plugin": "^8.0.1",
|
|
111
111
|
"@types/detect-port": "^1.3.0",
|
|
112
112
|
"@types/mini-css-extract-plugin": "^1.4.3",
|
|
@@ -129,5 +129,5 @@
|
|
|
129
129
|
"engines": {
|
|
130
130
|
"node": ">=14"
|
|
131
131
|
},
|
|
132
|
-
"gitHead": "
|
|
132
|
+
"gitHead": "3086e9e823783e306698097d959007f44de275b1"
|
|
133
133
|
}
|