@docusaurus/bundler 4.0.0-canary-6841 → 4.0.0-canary-6842
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/loaders/nullLoader.d.ts +9 -0
- package/lib/loaders/nullLoader.d.ts.map +1 -0
- package/lib/loaders/nullLoader.js +21 -0
- package/lib/loaders/nullLoader.js.map +1 -0
- package/lib/loaders/styleLoader.js +1 -1
- package/lib/loaders/styleLoader.js.map +1 -1
- package/package.json +7 -8
- package/src/loaders/nullLoader.ts +19 -0
- package/src/loaders/styleLoader.ts +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
export default function nullLoader(): string;
|
|
8
|
+
export declare function pitch(): string;
|
|
9
|
+
//# sourceMappingURL=nullLoader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nullLoader.d.ts","sourceRoot":"","sources":["../../src/loaders/nullLoader.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,MAAM,CAAC,OAAO,UAAU,UAAU,IAAI,MAAM,CAE3C;AAGD,wBAAgB,KAAK,IAAI,MAAM,CAE9B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.default = nullLoader;
|
|
10
|
+
exports.pitch = pitch;
|
|
11
|
+
// A loader returning an empty module, used to ignore some imports
|
|
12
|
+
// Replaces the unmaintained null-loader package and its outdated dependencies
|
|
13
|
+
// See https://github.com/webpack-contrib/null-loader
|
|
14
|
+
function nullLoader() {
|
|
15
|
+
return '';
|
|
16
|
+
}
|
|
17
|
+
// Pitching short-circuits the loader chain: the file isn't even read
|
|
18
|
+
function pitch() {
|
|
19
|
+
return '';
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=nullLoader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nullLoader.js","sourceRoot":"","sources":["../../src/loaders/nullLoader.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;AAEH,kEAAkE;AAClE,8EAA8E;AAC9E,qDAAqD;AAErD;IACE,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,qEAAqE;AACrE;IACE,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styleLoader.js","sourceRoot":"","sources":["../../src/loaders/styleLoader.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,sDAAsD;AAG/C,KAAK,oCAAoC,EAC9C,cAAc,GAGf;IACC,MAAM,gBAAgB,GAAG,MAAM,IAAA,oCAAmB,EAAC,EAAC,cAAc,EAAC,CAAC,CAAC;IAErE,OAAO,SAAS,eAAe,CAC7B,QAAiB,EACjB,aAAa,GAET,EAAE;QAEN,MAAM,UAAU,GAA6B;YAC3C,oFAAoF;YACpF,QAAQ,EAAE,KAAK;YACf,GAAG,aAAa;SACjB,CAAC;QAEF,yDAAyD;QACzD,kEAAkE;QAClE,IAAI,QAAQ,EAAE,CAAC;YACb,OAAO,UAAU,CAAC,OAAO;gBACvB,CAAC,CAAC;oBACE;wBACE,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC;wBACrC,OAAO,EAAE,UAAU;qBACpB;iBACF;gBACH,CAAC,CAAC,2BAA2B;oBAC3B,CAAC,EAAC,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,
|
|
1
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AO,CAAC,OAAO,CAAC,oBAAoB,CAAC;gCACrC;gCACE,+CAA+C;gCAC/C,2DAA2D;iCAC5D;6BACF;yBACF;qBACF;iBACF;aACF;SACF,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/bundler",
|
|
3
|
-
"version": "4.0.0-canary-
|
|
3
|
+
"version": "4.0.0-canary-6842",
|
|
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,10 +19,10 @@
|
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@babel/core": "^7.29.7",
|
|
22
|
-
"@docusaurus/babel": "4.0.0-canary-
|
|
23
|
-
"@docusaurus/cssnano-preset": "4.0.0-canary-
|
|
24
|
-
"@docusaurus/logger": "4.0.0-canary-
|
|
25
|
-
"@docusaurus/types": "4.0.0-canary-
|
|
22
|
+
"@docusaurus/babel": "4.0.0-canary-6842",
|
|
23
|
+
"@docusaurus/cssnano-preset": "4.0.0-canary-6842",
|
|
24
|
+
"@docusaurus/logger": "4.0.0-canary-6842",
|
|
25
|
+
"@docusaurus/types": "4.0.0-canary-6842",
|
|
26
26
|
"babel-loader": "^10.1.1",
|
|
27
27
|
"clean-css": "^5.3.3",
|
|
28
28
|
"css-loader": "^7.1.5",
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
"cssnano": "^7.1.9",
|
|
31
31
|
"html-minifier-terser": "^7.2.0",
|
|
32
32
|
"mini-css-extract-plugin": "^2.10.2",
|
|
33
|
-
"null-loader": "^4.0.1",
|
|
34
33
|
"postcss": "^8.5.28",
|
|
35
34
|
"postcss-loader": "^8.2.1",
|
|
36
35
|
"postcss-preset-env": "^11.5.2",
|
|
@@ -40,7 +39,7 @@
|
|
|
40
39
|
"webpackbar": "^7.0.0"
|
|
41
40
|
},
|
|
42
41
|
"peerDependencies": {
|
|
43
|
-
"@docusaurus/faster": "4.0.0-canary-
|
|
42
|
+
"@docusaurus/faster": "4.0.0-canary-6842",
|
|
44
43
|
"@types/html-minifier-terser": "^7.0.2"
|
|
45
44
|
},
|
|
46
45
|
"peerDependenciesMeta": {
|
|
@@ -54,5 +53,5 @@
|
|
|
54
53
|
"engines": {
|
|
55
54
|
"node": ">=24.21"
|
|
56
55
|
},
|
|
57
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "631fd51d00303096997d355ae6b6c525b0775c2c"
|
|
58
57
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
// A loader returning an empty module, used to ignore some imports
|
|
9
|
+
// Replaces the unmaintained null-loader package and its outdated dependencies
|
|
10
|
+
// See https://github.com/webpack-contrib/null-loader
|
|
11
|
+
|
|
12
|
+
export default function nullLoader(): string {
|
|
13
|
+
return '';
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// Pitching short-circuits the loader chain: the file isn't even read
|
|
17
|
+
export function pitch(): string {
|
|
18
|
+
return '';
|
|
19
|
+
}
|