@docusaurus/faster 4.0.0-canary-6898 → 4.0.0-canary-6899
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 +0 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -9
- package/lib/index.js.map +1 -1
- package/package.json +3 -4
- package/src/index.ts +0 -11
package/lib/index.d.ts
CHANGED
|
@@ -17,8 +17,5 @@ export declare const rspack: typeof import("../node_modules/@rspack/core/dist/rs
|
|
|
17
17
|
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;
|
|
18
18
|
};
|
|
19
19
|
export declare const rspackDevServer: typeof RspackDevServer;
|
|
20
|
-
type SwcHtmlMinifier = (typeof import('@swc/html'))['minify'];
|
|
21
|
-
export declare function getSwcHtmlMinifier(): Promise<SwcHtmlMinifier>;
|
|
22
20
|
export declare function getSwcJsMinimizerOptions(): JsMinifyOptions;
|
|
23
|
-
export {};
|
|
24
21
|
//# sourceMappingURL=index.d.ts.map
|
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;AAGH,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AAGnD,OAAO,KAAK,EAAC,eAAe,EAAE,OAAO,IAAI,UAAU,EAAC,MAAM,WAAW,CAAC;AACtE,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,mBAAmB,0DAI7B;IACD,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IACpC,yBAAyB,EAAE,MAAM,EAAE,CAAC;CACrC,KAAG,UAwBH,CAAC;AAEF,eAAO,MAAM,MAAM;;;CAAS,CAAC;AAE7B,eAAO,MAAM,eAAe,wBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AAGnD,OAAO,KAAK,EAAC,eAAe,EAAE,OAAO,IAAI,UAAU,EAAC,MAAM,WAAW,CAAC;AACtE,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,mBAAmB,0DAI7B;IACD,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IACpC,yBAAyB,EAAE,MAAM,EAAE,CAAC;CACrC,KAAG,UAwBH,CAAC;AAEF,eAAO,MAAM,MAAM;;;CAAS,CAAC;AAE7B,eAAO,MAAM,eAAe,wBAAkB,CAAC;AAM/C,wBAAgB,wBAAwB,IAAI,eAAe,CAe1D"}
|
package/lib/index.js
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.rspackDevServer = exports.rspack = exports.getSwcLoaderOptions = void 0;
|
|
10
|
-
exports.getSwcHtmlMinifier = getSwcHtmlMinifier;
|
|
11
10
|
exports.getSwcJsMinimizerOptions = getSwcJsMinimizerOptions;
|
|
12
11
|
const tslib_1 = require("tslib");
|
|
13
12
|
const core_1 = require("@rspack/core");
|
|
@@ -42,14 +41,6 @@ const getSwcLoaderOptions = ({ isServer, bundlerName, clientBrowserslistQueries,
|
|
|
42
41
|
exports.getSwcLoaderOptions = getSwcLoaderOptions;
|
|
43
42
|
exports.rspack = core_1.rspack;
|
|
44
43
|
exports.rspackDevServer = dev_server_1.RspackDevServer;
|
|
45
|
-
// Import it lazily: not need for the dev server, more performant
|
|
46
|
-
// This also temporarily fix our StackBlitz playground
|
|
47
|
-
// See https://github.com/facebook/docusaurus/issues/12008
|
|
48
|
-
// See https://github.com/swc-project/swc/issues/11833
|
|
49
|
-
async function getSwcHtmlMinifier() {
|
|
50
|
-
const { minify } = await import('@swc/html');
|
|
51
|
-
return minify;
|
|
52
|
-
}
|
|
53
44
|
// Note: these options are similar to what we use in core
|
|
54
45
|
// They should rather be kept in sync for now to avoid any unexpected behavior
|
|
55
46
|
// The goal of faster minifier is not to fine-tune options but only to be faster
|
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,wEAAwC;AACxC,4DAA4B;AAIrB,MAAM,mBAAmB,GAAG,CAAC,EAClC,QAAQ,EACR,WAAW,EACX,yBAAyB,GAK1B,EAAc,EAAE;IACf,OAAO;QACL,GAAG,EAAE;YACH,OAAO,EAAE,QAAQ;gBACf,CAAC,CAAC,4BAA4B,CAAC,EAAC,WAAW,EAAC,CAAC;gBAC7C,CAAC,CAAC,yBAAyB;SAC9B;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;YACD,YAAY,EAAE;gBACZ,oDAAoD;gBACpD,kDAAkD;gBAClD,oBAAoB,EAAE,IAAI;aAC3B;SACF;KACF,CAAC;AACJ,CAAC,CAAC;AAhCW,QAAA,mBAAmB,GAAnB,mBAAmB,CAgC9B;AAEW,QAAA,MAAM,GAAG,aAAM,CAAC;AAEhB,QAAA,eAAe,GAAG,4BAAe,CAAC;AAE/C,yDAAyD;AACz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1
|
{
|
|
2
2
|
"name": "@docusaurus/faster",
|
|
3
|
-
"version": "4.0.0-canary-
|
|
3
|
+
"version": "4.0.0-canary-6899",
|
|
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,11 +18,10 @@
|
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@docusaurus/types": "4.0.0-canary-
|
|
21
|
+
"@docusaurus/types": "4.0.0-canary-6899",
|
|
22
22
|
"@rspack/core": "^2.2.3",
|
|
23
23
|
"@rspack/dev-server": "^2.2.1",
|
|
24
24
|
"@swc/core": "^1.16.2",
|
|
25
|
-
"@swc/html": "^1.16.2",
|
|
26
25
|
"browserslist": "^4.29.0",
|
|
27
26
|
"semver": "^7.8.5",
|
|
28
27
|
"tslib": "^2.8.1"
|
|
@@ -33,5 +32,5 @@
|
|
|
33
32
|
"peerDependencies": {
|
|
34
33
|
"@docusaurus/types": "*"
|
|
35
34
|
},
|
|
36
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "72622a2308261a457ca37d1e090d3efe608558cc"
|
|
37
36
|
}
|
package/src/index.ts
CHANGED
|
@@ -50,17 +50,6 @@ export const rspack = Rspack;
|
|
|
50
50
|
|
|
51
51
|
export const rspackDevServer = RspackDevServer;
|
|
52
52
|
|
|
53
|
-
type SwcHtmlMinifier = (typeof import('@swc/html'))['minify'];
|
|
54
|
-
|
|
55
|
-
// Import it lazily: not need for the dev server, more performant
|
|
56
|
-
// This also temporarily fix our StackBlitz playground
|
|
57
|
-
// See https://github.com/facebook/docusaurus/issues/12008
|
|
58
|
-
// See https://github.com/swc-project/swc/issues/11833
|
|
59
|
-
export async function getSwcHtmlMinifier(): Promise<SwcHtmlMinifier> {
|
|
60
|
-
const {minify} = await import('@swc/html');
|
|
61
|
-
return minify;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
53
|
// Note: these options are similar to what we use in core
|
|
65
54
|
// They should rather be kept in sync for now to avoid any unexpected behavior
|
|
66
55
|
// The goal of faster minifier is not to fine-tune options but only to be faster
|