@docusaurus/core 4.0.0-canary-6868 → 4.0.0-canary-6870

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.
@@ -7,7 +7,6 @@
7
7
  import { type LoadContextParams } from '../../server/site';
8
8
  export type BuildCLIOptions = Pick<LoadContextParams, 'config' | 'outDir'> & {
9
9
  locale?: [string, ...string[]];
10
- bundleAnalyzer?: boolean;
11
10
  minify?: boolean;
12
11
  dev?: boolean;
13
12
  };
@@ -130,7 +130,6 @@ async function getBuildClientConfig({ props, cliOptions, configureWebpackUtils,
130
130
  minify: cliOptions.minify ?? true,
131
131
  faster: props.siteConfig.future.faster,
132
132
  configureWebpackUtils,
133
- bundleAnalyzer: cliOptions.bundleAnalyzer ?? false,
134
133
  });
135
134
  let { config } = result;
136
135
  config = (0, configure_1.executePluginsConfigureWebpack)({
@@ -66,7 +66,6 @@ async function createCLIProgram({ cli, cliArgs, siteDir, config, }) {
66
66
  .command('build [siteDir]')
67
67
  .description('Build website.')
68
68
  .option('--dev', 'Builds the website in dev mode, including full React error messages.')
69
- .option('--bundle-analyzer', 'visualize size of webpack output files with an interactive zoomable tree map (default: false)')
70
69
  .option('--out-dir <dir>', 'the full path for the new output directory, relative to the current workspace (default: build)')
71
70
  .option('--config <config>', 'path to docusaurus config file (default: `[siteDir]/docusaurus.config.js`)')
72
71
  .option('-l, --locale <locale...>', 'build the site in the specified locale(s). Build all known locales otherwise', concatLocaleOptions)
@@ -15,12 +15,11 @@ export declare function createStartClientConfig({ props, minify, poll, faster, c
15
15
  }): Promise<{
16
16
  clientConfig: Configuration;
17
17
  }>;
18
- export declare function createBuildClientConfig({ props, minify, faster, configureWebpackUtils, bundleAnalyzer, }: {
18
+ export declare function createBuildClientConfig({ props, minify, faster, configureWebpackUtils, }: {
19
19
  props: Props;
20
20
  minify: boolean;
21
21
  faster: FasterConfig;
22
22
  configureWebpackUtils: ConfigureWebpackUtils;
23
- bundleAnalyzer: boolean;
24
23
  }): Promise<{
25
24
  config: Configuration;
26
25
  clientManifestPath: string;
@@ -11,7 +11,6 @@ exports.createBuildClientConfig = createBuildClientConfig;
11
11
  const tslib_1 = require("tslib");
12
12
  const path_1 = tslib_1.__importDefault(require("path"));
13
13
  const webpack_merge_1 = tslib_1.__importDefault(require("webpack-merge"));
14
- const webpack_bundle_analyzer_1 = require("webpack-bundle-analyzer");
15
14
  const react_loadable_ssr_addon_v5_slorber_1 = tslib_1.__importDefault(require("react-loadable-ssr-addon-v5-slorber"));
16
15
  const bundler_1 = require("@docusaurus/bundler");
17
16
  const utils_1 = require("@docusaurus/utils");
@@ -93,7 +92,7 @@ async function createStartClientConfig({ props, minify, poll, faster, configureW
93
92
  return { clientConfig };
94
93
  }
95
94
  // client config when running "docusaurus build"
96
- async function createBuildClientConfig({ props, minify, faster, configureWebpackUtils, bundleAnalyzer, }) {
95
+ async function createBuildClientConfig({ props, minify, faster, configureWebpackUtils, }) {
97
96
  // Apply user webpack config.
98
97
  const { generatedFilesDir, siteConfig } = props;
99
98
  const router = siteConfig.future.experimental_router;
@@ -110,9 +109,6 @@ async function createBuildClientConfig({ props, minify, faster, configureWebpack
110
109
  }), {
111
110
  plugins: [
112
111
  new ForceTerminatePlugin_1.default(),
113
- // Visualize size of webpack output files with an interactive zoomable
114
- // tree map.
115
- bundleAnalyzer && new webpack_bundle_analyzer_1.BundleAnalyzerPlugin(),
116
112
  // Generate client manifests file that will be used for server bundle.
117
113
  new react_loadable_ssr_addon_v5_slorber_1.default({
118
114
  filename: clientManifestPath,
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": "4.0.0-canary-6868",
4
+ "version": "4.0.0-canary-6870",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -33,14 +33,14 @@
33
33
  "url": "https://github.com/facebook/docusaurus/issues"
34
34
  },
35
35
  "dependencies": {
36
- "@docusaurus/babel": "4.0.0-canary-6868",
37
- "@docusaurus/bundler": "4.0.0-canary-6868",
38
- "@docusaurus/glob": "4.0.0-canary-6868",
39
- "@docusaurus/logger": "4.0.0-canary-6868",
40
- "@docusaurus/mdx-loader": "4.0.0-canary-6868",
41
- "@docusaurus/utils": "4.0.0-canary-6868",
42
- "@docusaurus/utils-common": "4.0.0-canary-6868",
43
- "@docusaurus/utils-validation": "4.0.0-canary-6868",
36
+ "@docusaurus/babel": "4.0.0-canary-6870",
37
+ "@docusaurus/bundler": "4.0.0-canary-6870",
38
+ "@docusaurus/glob": "4.0.0-canary-6870",
39
+ "@docusaurus/logger": "4.0.0-canary-6870",
40
+ "@docusaurus/mdx-loader": "4.0.0-canary-6870",
41
+ "@docusaurus/utils": "4.0.0-canary-6870",
42
+ "@docusaurus/utils-common": "4.0.0-canary-6870",
43
+ "@docusaurus/utils-validation": "4.0.0-canary-6870",
44
44
  "boxen": "^9.0.0",
45
45
  "cli-table3": "^0.6.5",
46
46
  "combine-promises": "^1.2.0",
@@ -69,13 +69,12 @@
69
69
  "tslib": "^2.8.1",
70
70
  "update-notifier": "^7.3.1",
71
71
  "webpack": "^5.111.0",
72
- "webpack-bundle-analyzer": "^5.3.2",
73
72
  "webpack-dev-server": "^6.0.0",
74
73
  "webpack-merge": "^6.0.1"
75
74
  },
76
75
  "devDependencies": {
77
- "@docusaurus/module-type-aliases": "4.0.0-canary-6868",
78
- "@docusaurus/types": "4.0.0-canary-6868",
76
+ "@docusaurus/module-type-aliases": "4.0.0-canary-6870",
77
+ "@docusaurus/types": "4.0.0-canary-6870",
79
78
  "@total-typescript/shoehorn": "^0.1.2",
80
79
  "@types/escape-html": "^1.0.4",
81
80
  "@types/history": "^4.7.11",
@@ -84,13 +83,12 @@
84
83
  "@types/react-router-dom": "^5.3.3",
85
84
  "@types/serve-handler": "^6.1.4",
86
85
  "@types/update-notifier": "^6.0.8",
87
- "@types/webpack-bundle-analyzer": "^4.7.0",
88
86
  "@types/webpack-env": "^1.18.8",
89
87
  "tree-node-cli": "^3.0.0",
90
88
  "utility-types": "^3.11.0"
91
89
  },
92
90
  "peerDependencies": {
93
- "@docusaurus/faster": "4.0.0-canary-6868",
91
+ "@docusaurus/faster": "4.0.0-canary-6870",
94
92
  "@mdx-js/react": "^3.1.1",
95
93
  "react": "^19.3.0",
96
94
  "react-dom": "^19.3.0"
@@ -103,5 +101,5 @@
103
101
  "engines": {
104
102
  "node": ">=24.21"
105
103
  },
106
- "gitHead": "e6df7e2a6fcc0b1b6899cc272588cf73a62765a9"
104
+ "gitHead": "ea3b6292c97af2e26f559f112cf9ea75a58a09c8"
107
105
  }