@lynx-js/react-rsbuild-plugin-canary 1.0.0-canary-20250918-9c8321cb → 1.0.0-canary-20260116-ce265e8f
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 +174 -7
- package/dist/208.js +1193 -0
- package/dist/300.js +21 -0
- package/dist/index.d.ts +10 -10
- package/dist/index.js +1 -1257
- package/dist/loaders/ignore-css-loader.js +1 -1
- package/dist/loaders/invalid-import-error-loader.js +1 -1
- package/dist/rslib-runtime.js +39 -0
- package/package.json +17 -15
- package/dist/856.js +0 -22
package/dist/300.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createLazyResolver, node_path, fileURLToPath } from "./208.js";
|
|
2
|
+
const resolve_dirname = node_path.dirname(fileURLToPath(import.meta.url));
|
|
3
|
+
const getImportResolver = (()=>{
|
|
4
|
+
let resolver = null;
|
|
5
|
+
return (rspack)=>{
|
|
6
|
+
resolver ??= createLazyResolver(rspack, resolve_dirname, [
|
|
7
|
+
'import'
|
|
8
|
+
]);
|
|
9
|
+
return resolver;
|
|
10
|
+
};
|
|
11
|
+
})();
|
|
12
|
+
const getMainThreadResolver = (()=>{
|
|
13
|
+
let resolver = null;
|
|
14
|
+
return (rspack)=>{
|
|
15
|
+
resolver ??= createLazyResolver(rspack, resolve_dirname, [
|
|
16
|
+
'lepus'
|
|
17
|
+
]);
|
|
18
|
+
return resolver;
|
|
19
|
+
};
|
|
20
|
+
})();
|
|
21
|
+
export { getImportResolver, getMainThreadResolver };
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import { LAYERS } from '@lynx-js/react-webpack-plugin';
|
|
8
|
+
import type { LynxTemplatePlugin as LynxTemplatePlugin_2 } from '@lynx-js/template-webpack-plugin';
|
|
8
9
|
import type { RsbuildPlugin } from '@rsbuild/core';
|
|
10
|
+
import type { TemplateHooks } from '@lynx-js/template-webpack-plugin';
|
|
9
11
|
|
|
10
12
|
/**
|
|
11
13
|
* {@inheritdoc CompatVisitorConfig.addComponentElement}
|
|
@@ -412,6 +414,10 @@ export declare interface ExtractStrConfig {
|
|
|
412
414
|
|
|
413
415
|
export { LAYERS }
|
|
414
416
|
|
|
417
|
+
export declare interface LynxTemplatePlugin {
|
|
418
|
+
getLynxTemplatePluginHooks: typeof LynxTemplatePlugin_2.getLynxTemplatePluginHooks;
|
|
419
|
+
}
|
|
420
|
+
|
|
415
421
|
/**
|
|
416
422
|
* Create a rsbuild plugin for ReactLynx.
|
|
417
423
|
*
|
|
@@ -441,7 +447,7 @@ export declare interface PluginReactLynxOptions {
|
|
|
441
447
|
*
|
|
442
448
|
* These options should only be used for migrating from ReactLynx2.0.
|
|
443
449
|
*/
|
|
444
|
-
compat?:
|
|
450
|
+
compat?: Partial<CompatVisitorConfig> & {
|
|
445
451
|
/**
|
|
446
452
|
* Whether disable runtime warnings about using ReactLynx2.0-incompatible `SelectorQuery` APIs.
|
|
447
453
|
*
|
|
@@ -458,7 +464,7 @@ export declare interface PluginReactLynxOptions {
|
|
|
458
464
|
* @defaultValue `false`
|
|
459
465
|
*/
|
|
460
466
|
disableCreateSelectorQueryIncompatibleWarning?: boolean;
|
|
461
|
-
}
|
|
467
|
+
} | undefined;
|
|
462
468
|
/**
|
|
463
469
|
* When {@link PluginReactLynxOptions.enableCSSInheritance} is enabled, `customCSSInheritanceList` can control which properties are inheritable, not just the default ones.
|
|
464
470
|
*
|
|
@@ -501,14 +507,6 @@ export declare interface PluginReactLynxOptions {
|
|
|
501
507
|
* enableAccessibilityElement set the default value of `accessibility-element` for all `<view />` elements.
|
|
502
508
|
*/
|
|
503
509
|
enableAccessibilityElement?: boolean;
|
|
504
|
-
/**
|
|
505
|
-
* enableICU enables the Intl API to be enabled globally.
|
|
506
|
-
*
|
|
507
|
-
* If enabled, please double check the compatibility with Lynx Share Context feature to avoid using shared Intl API from other destroyed card.
|
|
508
|
-
*
|
|
509
|
-
* @defaultValue `false`
|
|
510
|
-
*/
|
|
511
|
-
enableICU?: boolean;
|
|
512
510
|
/**
|
|
513
511
|
* enableCSSInheritance enables the default inheritance properties.
|
|
514
512
|
*
|
|
@@ -731,4 +729,6 @@ export declare interface ShakeVisitorConfig {
|
|
|
731
729
|
removeCallParams: Array<string>
|
|
732
730
|
}
|
|
733
731
|
|
|
732
|
+
export { TemplateHooks }
|
|
733
|
+
|
|
734
734
|
export { }
|