@docusaurus/bundler 0.0.0-6119 → 3.5.2-canary-6122
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"importFaster.d.ts","sourceRoot":"","sources":["../src/importFaster.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"importFaster.d.ts","sourceRoot":"","sources":["../src/importFaster.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EACV,gBAAgB,IAAI,kBAAkB,EACtC,aAAa,EACd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAC,gBAAgB,IAAI,mBAAmB,EAAC,MAAM,8BAA8B,CAAC;AAE1F,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,cAAc,oBAAoB,CAAC,CAAC,CAAC;AAmBxE,wBAAsB,YAAY,IAAI,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAGpE;AAED,wBAAsB,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,CAGvD;AAED,wBAAsB,yBAAyB,IAAI,OAAO,CACxD,YAAY,CAAC,qBAAqB,CAAC,CACpC,CAGA;AAED,wBAAsB,2BAA2B,IAAI,OAAO,CAC1D,kBAAkB,CAAC,aAAa,CAAC,CAClC,CAGA;AAED,wBAAsB,qBAAqB,IAAI,OAAO,CACpD,UAAU,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC,CAC/C,CAGA;AAED,wBAAsB,4BAA4B,IAAI,OAAO,CAC3D,YAAY,CAAC,wBAAwB,CAAC,CACvC,CAGA;AAED,wBAAsB,kCAAkC,IAAI,OAAO,CACjE,mBAAmB,CAAC,aAAa,CAAC,CACnC,CAGA"}
|
package/lib/importFaster.js
CHANGED
|
@@ -13,6 +13,8 @@ exports.importSwcJsMinimizerOptions = importSwcJsMinimizerOptions;
|
|
|
13
13
|
exports.importSwcHtmlMinifier = importSwcHtmlMinifier;
|
|
14
14
|
exports.importGetBrowserslistQueries = importGetBrowserslistQueries;
|
|
15
15
|
exports.importLightningCssMinimizerOptions = importLightningCssMinimizerOptions;
|
|
16
|
+
const tslib_1 = require("tslib");
|
|
17
|
+
const logger_1 = tslib_1.__importDefault(require("@docusaurus/logger"));
|
|
16
18
|
async function importFaster() {
|
|
17
19
|
return import('@docusaurus/faster');
|
|
18
20
|
}
|
|
@@ -21,7 +23,7 @@ async function ensureFaster() {
|
|
|
21
23
|
return await importFaster();
|
|
22
24
|
}
|
|
23
25
|
catch (error) {
|
|
24
|
-
throw new Error(
|
|
26
|
+
throw new Error(`To enable Docusaurus Faster options, your site must add the ${logger_1.default.name('@docusaurus/faster')} package as a dependency.`, { cause: error });
|
|
25
27
|
}
|
|
26
28
|
}
|
|
27
29
|
async function importRspack() {
|
package/lib/importFaster.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"importFaster.js","sourceRoot":"","sources":["../src/importFaster.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;
|
|
1
|
+
{"version":3,"file":"importFaster.js","sourceRoot":"","sources":["../src/importFaster.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AA4BH,oCAGC;AAED,0CAGC;AAED,8DAKC;AAED,kEAKC;AAED,sDAKC;AAED,oEAKC;AAED,gFAKC;;AArED,wEAAwC;AASxC,KAAK,UAAU,YAAY;IACzB,OAAO,MAAM,CAAC,oBAAoB,CAAC,CAAC;AACtC,CAAC;AAED,KAAK,UAAU,YAAY;IACzB,IAAI,CAAC;QACH,OAAO,MAAM,YAAY,EAAE,CAAC;IAC9B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CACb,+DAA+D,gBAAM,CAAC,IAAI,CACxE,oBAAoB,CACrB,2BAA2B,EAC5B,EAAC,KAAK,EAAE,KAAK,EAAC,CACf,CAAC;IACJ,CAAC;AACH,CAAC;AAEM,KAAK,UAAU,YAAY;IAChC,MAAM,MAAM,GAAG,MAAM,YAAY,EAAE,CAAC;IACpC,OAAO,MAAM,CAAC,MAAM,CAAC;AACvB,CAAC;AAEM,KAAK,UAAU,eAAe;IACnC,MAAM,MAAM,GAAG,MAAM,YAAY,EAAE,CAAC;IACpC,OAAO,MAAM,CAAC,SAAS,CAAC;AAC1B,CAAC;AAEM,KAAK,UAAU,yBAAyB;IAG7C,MAAM,MAAM,GAAG,MAAM,YAAY,EAAE,CAAC;IACpC,OAAO,MAAM,CAAC,mBAAmB,CAAC;AACpC,CAAC;AAEM,KAAK,UAAU,2BAA2B;IAG/C,MAAM,MAAM,GAAG,MAAM,YAAY,EAAE,CAAC;IACpC,OAAO,MAAM,CAAC,wBAAwB,EAAuC,CAAC;AAChF,CAAC;AAEM,KAAK,UAAU,qBAAqB;IAGzC,MAAM,MAAM,GAAG,MAAM,YAAY,EAAE,CAAC;IACpC,OAAO,MAAM,CAAC,kBAAkB,EAAE,CAAC;AACrC,CAAC;AAEM,KAAK,UAAU,4BAA4B;IAGhD,MAAM,MAAM,GAAG,MAAM,YAAY,EAAE,CAAC;IACpC,OAAO,MAAM,CAAC,sBAAsB,CAAC;AACvC,CAAC;AAEM,KAAK,UAAU,kCAAkC;IAGtD,MAAM,MAAM,GAAG,MAAM,YAAY,EAAE,CAAC;IACpC,OAAO,MAAM,CAAC,+BAA+B,EAAwC,CAAC;AACxF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/bundler",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.5.2-canary-6122",
|
|
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,11 +19,11 @@
|
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@babel/core": "^7.25.9",
|
|
22
|
-
"@docusaurus/babel": "
|
|
23
|
-
"@docusaurus/cssnano-preset": "
|
|
24
|
-
"@docusaurus/logger": "
|
|
25
|
-
"@docusaurus/types": "
|
|
26
|
-
"@docusaurus/utils": "
|
|
22
|
+
"@docusaurus/babel": "3.5.2-canary-6122",
|
|
23
|
+
"@docusaurus/cssnano-preset": "3.5.2-canary-6122",
|
|
24
|
+
"@docusaurus/logger": "3.5.2-canary-6122",
|
|
25
|
+
"@docusaurus/types": "3.5.2-canary-6122",
|
|
26
|
+
"@docusaurus/utils": "3.5.2-canary-6122",
|
|
27
27
|
"autoprefixer": "^10.4.14",
|
|
28
28
|
"babel-loader": "^9.2.1",
|
|
29
29
|
"clean-css": "^5.3.2",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": ">=18.0"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "13455a98d6f59bad263db5629d67cbed578c4250"
|
|
62
62
|
}
|
package/src/importFaster.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
import logger from '@docusaurus/logger';
|
|
8
9
|
import type {
|
|
9
10
|
MinimizerOptions as JsMinimizerOptions,
|
|
10
11
|
CustomOptions,
|
|
@@ -22,7 +23,9 @@ async function ensureFaster(): Promise<FasterModule> {
|
|
|
22
23
|
return await importFaster();
|
|
23
24
|
} catch (error) {
|
|
24
25
|
throw new Error(
|
|
25
|
-
|
|
26
|
+
`To enable Docusaurus Faster options, your site must add the ${logger.name(
|
|
27
|
+
'@docusaurus/faster',
|
|
28
|
+
)} package as a dependency.`,
|
|
26
29
|
{cause: error},
|
|
27
30
|
);
|
|
28
31
|
}
|