@rspress/shared 1.41.1 → 1.41.3
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/dist/constants.d.ts +7 -0
- package/dist/constants.js +54 -0
- package/dist/constants.mjs +18 -0
- package/dist/index.d.ts +938 -51
- package/dist/index.js +192 -242
- package/dist/index.mjs +132 -189
- package/dist/logger.d.ts +5 -2
- package/dist/logger.js +33 -27
- package/dist/logger.mjs +3 -5
- package/dist/node-utils.d.ts +703 -12
- package/dist/node-utils.js +97 -77
- package/dist/node-utils.mjs +32 -40
- package/package.json +10 -13
- package/dist/chalk.d.ts +0 -2
- package/dist/chalk.js +0 -42
- package/dist/chalk.mjs +0 -6
- package/dist/index-ba0faa42.d.ts +0 -805
@@ -0,0 +1,54 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __webpack_require__ = {};
|
3
|
+
(()=>{
|
4
|
+
__webpack_require__.d = function(exports1, definition) {
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
6
|
+
enumerable: true,
|
7
|
+
get: definition[key]
|
8
|
+
});
|
9
|
+
};
|
10
|
+
})();
|
11
|
+
(()=>{
|
12
|
+
__webpack_require__.o = function(obj, prop) {
|
13
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
14
|
+
};
|
15
|
+
})();
|
16
|
+
(()=>{
|
17
|
+
__webpack_require__.r = function(exports1) {
|
18
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
19
|
+
value: 'Module'
|
20
|
+
});
|
21
|
+
Object.defineProperty(exports1, '__esModule', {
|
22
|
+
value: true
|
23
|
+
});
|
24
|
+
};
|
25
|
+
})();
|
26
|
+
var __webpack_exports__ = {};
|
27
|
+
__webpack_require__.r(__webpack_exports__);
|
28
|
+
__webpack_require__.d(__webpack_exports__, {
|
29
|
+
DEFAULT_CONFIG_EXTENSIONS: ()=>DEFAULT_CONFIG_EXTENSIONS,
|
30
|
+
DEFAULT_CONFIG_NAME: ()=>DEFAULT_CONFIG_NAME,
|
31
|
+
DEFAULT_PAGE_EXTENSIONS: ()=>DEFAULT_PAGE_EXTENSIONS
|
32
|
+
});
|
33
|
+
const DEFAULT_CONFIG_NAME = 'rspress.config';
|
34
|
+
const DEFAULT_CONFIG_EXTENSIONS = [
|
35
|
+
'.js',
|
36
|
+
'.ts',
|
37
|
+
'.mjs',
|
38
|
+
'.mts',
|
39
|
+
'.cjs',
|
40
|
+
'.cts'
|
41
|
+
];
|
42
|
+
const DEFAULT_PAGE_EXTENSIONS = [
|
43
|
+
'.js',
|
44
|
+
'.jsx',
|
45
|
+
'.ts',
|
46
|
+
'.tsx',
|
47
|
+
'.md',
|
48
|
+
'.mdx'
|
49
|
+
];
|
50
|
+
var __webpack_export_target__ = exports;
|
51
|
+
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
52
|
+
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
53
|
+
value: true
|
54
|
+
});
|
@@ -0,0 +1,18 @@
|
|
1
|
+
const DEFAULT_CONFIG_NAME = 'rspress.config';
|
2
|
+
const DEFAULT_CONFIG_EXTENSIONS = [
|
3
|
+
'.js',
|
4
|
+
'.ts',
|
5
|
+
'.mjs',
|
6
|
+
'.mts',
|
7
|
+
'.cjs',
|
8
|
+
'.cts'
|
9
|
+
];
|
10
|
+
const DEFAULT_PAGE_EXTENSIONS = [
|
11
|
+
'.js',
|
12
|
+
'.jsx',
|
13
|
+
'.ts',
|
14
|
+
'.tsx',
|
15
|
+
'.md',
|
16
|
+
'.mdx'
|
17
|
+
];
|
18
|
+
export { DEFAULT_CONFIG_EXTENSIONS, DEFAULT_CONFIG_NAME, DEFAULT_PAGE_EXTENSIONS };
|