@lynx-js/rspeedy-canary 0.11.2-canary-20250915-88622967 → 0.11.3-canary-20250918-b17b7cb2
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/CHANGELOG.md +8 -2
- package/dist/index.d.ts +38 -0
- package/dist/index.js +3 -2
- package/dist/src_cli_build_ts.js +2 -1
- package/dist/src_cli_commands_ts.js +1 -1
- package/dist/src_cli_dev_ts.js +2 -1
- package/dist/src_cli_inspect_ts.js +2 -1
- package/dist/src_cli_preview_ts.js +2 -1
- package/dist/src_config_validate_ts.js +1362 -1347
- package/dist/src_plugins_api_plugin_ts.js +2 -2
- package/dist/src_plugins_rsdoctor_plugin_ts.js +13 -7
- package/dist/src_version_ts.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
# @lynx-js/rspeedy
|
|
2
2
|
|
|
3
|
-
## 0.11.
|
|
3
|
+
## 0.11.3-canary-20250918080343-b17b7cb2bb92d1539e76276f136806eefa788258
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Support `resolve.extensions` ([#1759](https://github.com/lynx-family/lynx-stack/pull/1759))
|
|
8
|
+
|
|
9
|
+
## 0.11.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
6
12
|
|
|
@@ -60,7 +66,7 @@
|
|
|
60
66
|
- Bump Rsbuild v1.5.4 with Rspack v1.5.2. ([#1644](https://github.com/lynx-family/lynx-stack/pull/1644))
|
|
61
67
|
|
|
62
68
|
- Updated dependencies [[`d7c5da3`](https://github.com/lynx-family/lynx-stack/commit/d7c5da329caddfb12ed77159fb8b1b8f38717cff)]:
|
|
63
|
-
- @lynx-js/chunk-loading-webpack-plugin@0.3.3
|
|
69
|
+
- @lynx-js/chunk-loading-webpack-plugin@0.3.3
|
|
64
70
|
- @lynx-js/cache-events-webpack-plugin@0.0.2
|
|
65
71
|
|
|
66
72
|
## 0.11.1
|
package/dist/index.d.ts
CHANGED
|
@@ -2590,6 +2590,44 @@ export declare interface Resolve {
|
|
|
2590
2590
|
* ```
|
|
2591
2591
|
*/
|
|
2592
2592
|
dedupe?: string[] | undefined;
|
|
2593
|
+
/**
|
|
2594
|
+
* Automatically resolve file extensions when importing modules. This means you can import files without explicitly writing their extensions.
|
|
2595
|
+
*
|
|
2596
|
+
* Default: `['.ts', '.tsx', '.mjs', '.js', '.jsx', '.json', '.cjs']`
|
|
2597
|
+
*
|
|
2598
|
+
* For example, if importing './index', Rsbuild will try to resolve using the following order:
|
|
2599
|
+
*
|
|
2600
|
+
* - `./index.ts`
|
|
2601
|
+
*
|
|
2602
|
+
* - `./index.tsx`
|
|
2603
|
+
*
|
|
2604
|
+
* - `./index.mjs`
|
|
2605
|
+
*
|
|
2606
|
+
* - `./index.js`
|
|
2607
|
+
*
|
|
2608
|
+
* - `./index.jsx`
|
|
2609
|
+
*
|
|
2610
|
+
* - `./index.json`
|
|
2611
|
+
*
|
|
2612
|
+
* - `./index.cjs`
|
|
2613
|
+
*
|
|
2614
|
+
* @remarks
|
|
2615
|
+
* The difference between `resolve.extensions` and `tools.rspack.resolve.extensions`:
|
|
2616
|
+
*
|
|
2617
|
+
* `resolve.extensions`: Completely overrides Rspeedy's default resolution.
|
|
2618
|
+
*
|
|
2619
|
+
* `tools.rspack.resolve.extensions`: Merges with the default configuration using [`webpack-merge`](https://github.com/survivejs/webpack-merge).
|
|
2620
|
+
*
|
|
2621
|
+
* @example
|
|
2622
|
+
* ```js
|
|
2623
|
+
* export default {
|
|
2624
|
+
* resolve: {
|
|
2625
|
+
* extensions: ['.ts', '.tsx', '.js'],
|
|
2626
|
+
* },
|
|
2627
|
+
* }
|
|
2628
|
+
* ```
|
|
2629
|
+
*/
|
|
2630
|
+
extensions?: string[] | undefined;
|
|
2593
2631
|
}
|
|
2594
2632
|
|
|
2595
2633
|
export { RsbuildPlugin }
|
package/dist/index.js
CHANGED
|
@@ -108,7 +108,7 @@ var __webpack_modules__ = {
|
|
|
108
108
|
});
|
|
109
109
|
var core_ = __webpack_require__("@rsbuild/core");
|
|
110
110
|
var package_namespaceObject = {
|
|
111
|
-
rE: "0.11.
|
|
111
|
+
rE: "0.11.2"
|
|
112
112
|
};
|
|
113
113
|
const version = package_namespaceObject.rE;
|
|
114
114
|
const rspackVersion = core_.rspack.rspackVersion;
|
|
@@ -344,7 +344,8 @@ function toRsbuildConfig(config) {
|
|
|
344
344
|
resolve: {
|
|
345
345
|
alias: config.resolve?.alias,
|
|
346
346
|
aliasStrategy: config.resolve?.aliasStrategy,
|
|
347
|
-
dedupe: config.resolve?.dedupe
|
|
347
|
+
dedupe: config.resolve?.dedupe,
|
|
348
|
+
extensions: config.resolve?.extensions
|
|
348
349
|
},
|
|
349
350
|
source: {
|
|
350
351
|
alias: config.source?.alias,
|
package/dist/src_cli_build_ts.js
CHANGED
|
@@ -328,7 +328,8 @@ export const __webpack_modules__ = {
|
|
|
328
328
|
resolve: {
|
|
329
329
|
alias: config.resolve?.alias,
|
|
330
330
|
aliasStrategy: config.resolve?.aliasStrategy,
|
|
331
|
-
dedupe: config.resolve?.dedupe
|
|
331
|
+
dedupe: config.resolve?.dedupe,
|
|
332
|
+
extensions: config.resolve?.extensions
|
|
332
333
|
},
|
|
333
334
|
source: {
|
|
334
335
|
alias: config.source?.alias,
|
|
@@ -41,7 +41,7 @@ export const __webpack_modules__ = {
|
|
|
41
41
|
});
|
|
42
42
|
var core_ = __webpack_require__("@rsbuild/core");
|
|
43
43
|
var package_namespaceObject = {
|
|
44
|
-
rE: "0.11.
|
|
44
|
+
rE: "0.11.2"
|
|
45
45
|
};
|
|
46
46
|
const version = package_namespaceObject.rE;
|
|
47
47
|
const rspackVersion = core_.rspack.rspackVersion;
|
package/dist/src_cli_dev_ts.js
CHANGED
|
@@ -320,7 +320,8 @@ export const __webpack_modules__ = {
|
|
|
320
320
|
resolve: {
|
|
321
321
|
alias: config.resolve?.alias,
|
|
322
322
|
aliasStrategy: config.resolve?.aliasStrategy,
|
|
323
|
-
dedupe: config.resolve?.dedupe
|
|
323
|
+
dedupe: config.resolve?.dedupe,
|
|
324
|
+
extensions: config.resolve?.extensions
|
|
324
325
|
},
|
|
325
326
|
source: {
|
|
326
327
|
alias: config.source?.alias,
|
|
@@ -266,7 +266,8 @@ export const __webpack_modules__ = {
|
|
|
266
266
|
resolve: {
|
|
267
267
|
alias: config.resolve?.alias,
|
|
268
268
|
aliasStrategy: config.resolve?.aliasStrategy,
|
|
269
|
-
dedupe: config.resolve?.dedupe
|
|
269
|
+
dedupe: config.resolve?.dedupe,
|
|
270
|
+
extensions: config.resolve?.extensions
|
|
270
271
|
},
|
|
271
272
|
source: {
|
|
272
273
|
alias: config.source?.alias,
|
|
@@ -268,7 +268,8 @@ export const __webpack_modules__ = {
|
|
|
268
268
|
resolve: {
|
|
269
269
|
alias: config.resolve?.alias,
|
|
270
270
|
aliasStrategy: config.resolve?.aliasStrategy,
|
|
271
|
-
dedupe: config.resolve?.dedupe
|
|
271
|
+
dedupe: config.resolve?.dedupe,
|
|
272
|
+
extensions: config.resolve?.extensions
|
|
272
273
|
},
|
|
273
274
|
source: {
|
|
274
275
|
alias: config.source?.alias,
|