@docusaurus/faster 3.10.2 → 4.0.0-canary-6809
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/index.d.ts +8 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -3
- package/lib/index.js.map +1 -1
- package/package.json +14 -13
- package/src/index.ts +6 -3
package/lib/index.d.ts
CHANGED
|
@@ -4,17 +4,21 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import
|
|
7
|
+
import { RspackDevServer } from '@rspack/dev-server';
|
|
8
8
|
import * as lightningcss from 'lightningcss';
|
|
9
9
|
import type { JsMinifyOptions, Options as SwcOptions } from '@swc/core';
|
|
10
10
|
import type { CurrentBundler } from '@docusaurus/types';
|
|
11
11
|
export declare const swcLoader: string;
|
|
12
12
|
export declare const getSwcLoaderOptions: ({ isServer, bundlerName, }: {
|
|
13
13
|
isServer: boolean;
|
|
14
|
-
bundlerName: CurrentBundler[
|
|
14
|
+
bundlerName: CurrentBundler['name'];
|
|
15
15
|
}) => SwcOptions;
|
|
16
|
-
export declare const rspack: typeof
|
|
17
|
-
|
|
16
|
+
export declare const rspack: typeof import("../../../node_modules/@rspack/core/dist/rspack.js", { with: { "resolution-mode": "import" } }).rspack & typeof import("../../../node_modules/@rspack/core/dist/exports.js", { with: { "resolution-mode": "import" } }) & {
|
|
17
|
+
rspack: typeof import("../../../node_modules/@rspack/core/dist/rspack.js", { with: { "resolution-mode": "import" } }).rspack & typeof import("../../../node_modules/@rspack/core/dist/exports.js", { with: { "resolution-mode": "import" } }) & /*elided*/ any;
|
|
18
|
+
webpack: typeof import("../../../node_modules/@rspack/core/dist/rspack.js", { with: { "resolution-mode": "import" } }).rspack & typeof import("../../../node_modules/@rspack/core/dist/exports.js", { with: { "resolution-mode": "import" } }) & /*elided*/ any;
|
|
19
|
+
};
|
|
20
|
+
export declare const rspackDevServer: typeof RspackDevServer;
|
|
21
|
+
type SwcHtmlMinifier = (typeof import('@swc/html'))['minify'];
|
|
18
22
|
export declare function getSwcHtmlMinifier(): Promise<SwcHtmlMinifier>;
|
|
19
23
|
export declare function getSwcJsMinimizerOptions(): JsMinifyOptions;
|
|
20
24
|
export declare function getBrowserslistQueries({ isServer, bundlerName, }: {
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,YAAY,MAAM,cAAc,CAAC;AAG7C,OAAO,KAAK,EAAC,eAAe,EAAE,OAAO,IAAI,UAAU,EAAC,MAAM,WAAW,CAAC;AACtE,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,SAAS,QAAgC,CAAC;AAEvD,eAAO,MAAM,mBAAmB,+BAG7B;IACD,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;CACrC,KAAG,UAiBH,CAAC;AAEF,eAAO,MAAM,MAAM;;;CAAS,CAAC;AAE7B,eAAO,MAAM,eAAe,wBAAkB,CAAC;AAE/C,KAAK,eAAe,GAAG,CAAC,cAAc,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;AAM9D,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,eAAe,CAAC,CAGnE;AAMD,wBAAgB,wBAAwB,IAAI,eAAe,CAe1D;AAuBD,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,WAAW,GACZ,EAAE;IACD,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;CACrC,GAAG,MAAM,EAAE,CAqBX;AAKD,KAAK,4BAA4B,GAAG,IAAI,CACtC,YAAY,CAAC,gBAAgB,CAAC,KAAK,CAAC,EACpC,UAAU,GAAG,MAAM,CACpB,CAAC;AAEF,wBAAgB,+BAA+B,IAAI,4BAA4B,CAG9E"}
|
package/lib/index.js
CHANGED
|
@@ -6,13 +6,14 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.rspack = exports.getSwcLoaderOptions = exports.swcLoader = void 0;
|
|
9
|
+
exports.rspackDevServer = exports.rspack = exports.getSwcLoaderOptions = exports.swcLoader = void 0;
|
|
10
10
|
exports.getSwcHtmlMinifier = getSwcHtmlMinifier;
|
|
11
11
|
exports.getSwcJsMinimizerOptions = getSwcJsMinimizerOptions;
|
|
12
12
|
exports.getBrowserslistQueries = getBrowserslistQueries;
|
|
13
13
|
exports.getLightningCssMinimizerOptions = getLightningCssMinimizerOptions;
|
|
14
14
|
const tslib_1 = require("tslib");
|
|
15
|
-
const core_1 =
|
|
15
|
+
const core_1 = require("@rspack/core");
|
|
16
|
+
const dev_server_1 = require("@rspack/dev-server");
|
|
16
17
|
const lightningcss = tslib_1.__importStar(require("lightningcss"));
|
|
17
18
|
const browserslist_1 = tslib_1.__importDefault(require("browserslist"));
|
|
18
19
|
const semver_1 = tslib_1.__importDefault(require("semver"));
|
|
@@ -36,7 +37,8 @@ const getSwcLoaderOptions = ({ isServer, bundlerName, }) => {
|
|
|
36
37
|
};
|
|
37
38
|
};
|
|
38
39
|
exports.getSwcLoaderOptions = getSwcLoaderOptions;
|
|
39
|
-
exports.rspack = core_1.
|
|
40
|
+
exports.rspack = core_1.rspack;
|
|
41
|
+
exports.rspackDevServer = dev_server_1.RspackDevServer;
|
|
40
42
|
// Import it lazily: not need for the dev server, more performant
|
|
41
43
|
// This also temporarily fix our StackBlitz playground
|
|
42
44
|
// See https://github.com/facebook/docusaurus/issues/12008
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;AAEH,uCAA8C;AAC9C,mDAAmD;AACnD,MAAY,YAAY,iDAAqB;AAC7C,wEAAwC;AACxC,4DAA4B;AAIf,QAAA,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;AAEhD,MAAM,mBAAmB,GAAG,CAAC,EAClC,QAAQ,EACR,WAAW,GAIZ,EAAc,EAAE;IACf,OAAO;QACL,GAAG,EAAE;YACH,OAAO,EAAE,sBAAsB,CAAC,EAAC,QAAQ,EAAE,WAAW,EAAC,CAAC;SACzD;QACD,GAAG,EAAE;YACH,MAAM,EAAE;gBACN,MAAM,EAAE,YAAY;gBACpB,GAAG,EAAE,IAAI;aACV;YACD,SAAS,EAAE;gBACT,KAAK,EAAE;oBACL,OAAO,EAAE,WAAW;iBACrB;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC;AAvBW,QAAA,mBAAmB,GAAnB,mBAAmB,CAuB9B;AAEW,QAAA,MAAM,GAAG,aAAM,CAAC;AAEhB,QAAA,eAAe,GAAG,4BAAe,CAAC;AAI/C,iEAAiE;AACjE,sDAAsD;AACtD,0DAA0D;AAC1D,sDAAsD;AAC/C,KAAK;IACV,MAAM,EAAC,MAAM,EAAC,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,CAAC;IAC3C,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,yDAAyD;AACzD,8EAA8E;AAC9E,gFAAgF;AAChF,2BAA2B;AAC3B;IACE,OAAO;QACL,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE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E,EAAC,CAAC,IAAI;QAChE,GAAG,sBAAY,CAAC,QAAQ;KACzB,CAAC;IAEF,OAAO,OAAO,CAAC;AACjB,CAAC;AAUD;IACE,MAAM,OAAO,GAAG,IAAA,sBAAY,GAAE,CAAC;IAC/B,OAAO,EAAC,OAAO,EAAE,YAAY,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAC,CAAC;AAChE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/faster",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-canary-6809",
|
|
4
4
|
"description": "Docusaurus experimental package exposing new modern dependencies to make the build faster.",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -18,22 +18,23 @@
|
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@docusaurus/types": "
|
|
22
|
-
"@rspack/core": "^
|
|
23
|
-
"@
|
|
24
|
-
"@swc/
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
21
|
+
"@docusaurus/types": "4.0.0-canary-6809",
|
|
22
|
+
"@rspack/core": "^2.2.3",
|
|
23
|
+
"@rspack/dev-server": "^2.2.1",
|
|
24
|
+
"@swc/core": "^1.16.2",
|
|
25
|
+
"@swc/html": "^1.16.2",
|
|
26
|
+
"browserslist": "^4.28.9",
|
|
27
|
+
"lightningcss": "^1.33.0",
|
|
28
|
+
"semver": "^7.8.5",
|
|
29
|
+
"swc-loader": "^0.2.7",
|
|
30
|
+
"tslib": "^2.8.1",
|
|
31
|
+
"webpack": "^5.110.3"
|
|
31
32
|
},
|
|
32
33
|
"engines": {
|
|
33
|
-
"node": ">=
|
|
34
|
+
"node": ">=24.14"
|
|
34
35
|
},
|
|
35
36
|
"peerDependencies": {
|
|
36
37
|
"@docusaurus/types": "*"
|
|
37
38
|
},
|
|
38
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "db942b07f3529b5359bcae27ab3796cb07dec10e"
|
|
39
40
|
}
|
package/src/index.ts
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import Rspack from '@rspack/core';
|
|
8
|
+
import {rspack as Rspack} from '@rspack/core';
|
|
9
|
+
import {RspackDevServer} from '@rspack/dev-server';
|
|
9
10
|
import * as lightningcss from 'lightningcss';
|
|
10
11
|
import browserslist from 'browserslist';
|
|
11
12
|
import semver from 'semver';
|
|
@@ -39,9 +40,11 @@ export const getSwcLoaderOptions = ({
|
|
|
39
40
|
};
|
|
40
41
|
};
|
|
41
42
|
|
|
42
|
-
export const rspack
|
|
43
|
+
export const rspack = Rspack;
|
|
43
44
|
|
|
44
|
-
|
|
45
|
+
export const rspackDevServer = RspackDevServer;
|
|
46
|
+
|
|
47
|
+
type SwcHtmlMinifier = (typeof import('@swc/html'))['minify'];
|
|
45
48
|
|
|
46
49
|
// Import it lazily: not need for the dev server, more performant
|
|
47
50
|
// This also temporarily fix our StackBlitz playground
|