@docusaurus/bundler 4.0.0-canary-6839 → 4.0.0-canary-6841

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.
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  export type HtmlMinifierType = 'swc' | 'terser';
8
- export type HtmlMinifierResult = {
8
+ type HtmlMinifierResult = {
9
9
  code: string;
10
10
  warnings: string[];
11
11
  };
@@ -15,4 +15,5 @@ export type HtmlMinifier = {
15
15
  export declare function getHtmlMinifier({ type, }: {
16
16
  type: HtmlMinifierType;
17
17
  }): Promise<HtmlMinifier>;
18
+ export {};
18
19
  //# sourceMappingURL=minifyHtml.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"minifyHtml.d.ts","sourceRoot":"","sources":["../src/minifyHtml.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,QAAQ,CAAC;AAEhD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC;CACvD,CAAC;AAMF,wBAAsB,eAAe,CAAC,EACpC,IAAI,GACL,EAAE;IACD,IAAI,EAAE,gBAAgB,CAAC;CACxB,GAAG,OAAO,CAAC,YAAY,CAAC,CASxB"}
1
+ {"version":3,"file":"minifyHtml.d.ts","sourceRoot":"","sources":["../src/minifyHtml.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,QAAQ,CAAC;AAEhD,KAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC;CACvD,CAAC;AAMF,wBAAsB,eAAe,CAAC,EACpC,IAAI,GACL,EAAE;IACD,IAAI,EAAE,gBAAgB,CAAC;CACxB,GAAG,OAAO,CAAC,YAAY,CAAC,CASxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/bundler",
3
- "version": "4.0.0-canary-6839",
3
+ "version": "4.0.0-canary-6841",
4
4
  "description": "Docusaurus util package to abstract the current bundler.",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -19,17 +19,15 @@
19
19
  "license": "MIT",
20
20
  "dependencies": {
21
21
  "@babel/core": "^7.29.7",
22
- "@docusaurus/babel": "4.0.0-canary-6839",
23
- "@docusaurus/cssnano-preset": "4.0.0-canary-6839",
24
- "@docusaurus/logger": "4.0.0-canary-6839",
25
- "@docusaurus/types": "4.0.0-canary-6839",
26
- "@docusaurus/utils": "4.0.0-canary-6839",
22
+ "@docusaurus/babel": "4.0.0-canary-6841",
23
+ "@docusaurus/cssnano-preset": "4.0.0-canary-6841",
24
+ "@docusaurus/logger": "4.0.0-canary-6841",
25
+ "@docusaurus/types": "4.0.0-canary-6841",
27
26
  "babel-loader": "^10.1.1",
28
27
  "clean-css": "^5.3.3",
29
28
  "css-loader": "^7.1.5",
30
29
  "css-minimizer-webpack-plugin": "^8.0.0",
31
30
  "cssnano": "^7.1.9",
32
- "file-loader": "^6.2.0",
33
31
  "html-minifier-terser": "^7.2.0",
34
32
  "mini-css-extract-plugin": "^2.10.2",
35
33
  "null-loader": "^4.0.1",
@@ -38,12 +36,11 @@
38
36
  "postcss-preset-env": "^11.5.2",
39
37
  "terser-webpack-plugin": "^5.6.1",
40
38
  "tslib": "^2.8.1",
41
- "url-loader": "^4.1.1",
42
39
  "webpack": "^5.111.0",
43
40
  "webpackbar": "^7.0.0"
44
41
  },
45
42
  "peerDependencies": {
46
- "@docusaurus/faster": "4.0.0-canary-6839",
43
+ "@docusaurus/faster": "4.0.0-canary-6841",
47
44
  "@types/html-minifier-terser": "^7.0.2"
48
45
  },
49
46
  "peerDependenciesMeta": {
@@ -57,5 +54,5 @@
57
54
  "engines": {
58
55
  "node": ">=24.21"
59
56
  },
60
- "gitHead": "c93a33b60c528917c38fbf07e54c14ff52bdc190"
57
+ "gitHead": "6c97ad62ff58f7eda88392a0e33fcd982d826567"
61
58
  }
package/src/minifyHtml.ts CHANGED
@@ -13,7 +13,7 @@ const SkipHtmlMinification = process.env.SKIP_HTML_MINIFICATION === 'true';
13
13
 
14
14
  export type HtmlMinifierType = 'swc' | 'terser';
15
15
 
16
- export type HtmlMinifierResult = {
16
+ type HtmlMinifierResult = {
17
17
  code: string;
18
18
  warnings: string[];
19
19
  };