@weapp-vite/web 1.0.0 → 1.1.0
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/index.d.ts +3 -2
- package/dist/index.mjs +2665 -14626
- package/dist/{plugin-D_a0z32j.d.ts → plugin-C1f_qgnH.d.ts} +19 -0
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.mjs +1048 -14244
- package/dist/runtime/index.d.ts +447 -7
- package/dist/runtime/index.mjs +1396 -147
- package/package.json +4 -1
|
@@ -6,6 +6,16 @@ interface WxssTransformOptions {
|
|
|
6
6
|
* Default approximates a 750rpx layout projected to 375px screens.
|
|
7
7
|
*/
|
|
8
8
|
pxPerRpx?: number;
|
|
9
|
+
/**
|
|
10
|
+
* Design width for rpx conversion. When provided, rpx is converted into
|
|
11
|
+
* `calc(var(--rpx) * N)` to enable responsive sizing.
|
|
12
|
+
*/
|
|
13
|
+
designWidth?: number;
|
|
14
|
+
/**
|
|
15
|
+
* CSS variable name used to store the runtime rpx size.
|
|
16
|
+
* @default "--rpx"
|
|
17
|
+
*/
|
|
18
|
+
rpxVar?: string;
|
|
9
19
|
}
|
|
10
20
|
interface WxssTransformResult {
|
|
11
21
|
css: string;
|
|
@@ -18,6 +28,15 @@ interface WeappWebPluginOptions {
|
|
|
18
28
|
* Source root of the mini-program project. Defaults to `<root>/src`.
|
|
19
29
|
*/
|
|
20
30
|
srcDir?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Form behavior config for web runtime.
|
|
33
|
+
*/
|
|
34
|
+
form?: {
|
|
35
|
+
/**
|
|
36
|
+
* When true, prevent default browser form submission. Defaults to true.
|
|
37
|
+
*/
|
|
38
|
+
preventDefault?: boolean;
|
|
39
|
+
};
|
|
21
40
|
}
|
|
22
41
|
declare function weappWebPlugin(options?: WeappWebPluginOptions): Plugin;
|
|
23
42
|
|
package/dist/plugin.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import 'vite';
|
|
2
|
-
export { W as WeappWebPluginOptions, w as weappWebPlugin } from './plugin-
|
|
2
|
+
export { W as WeappWebPluginOptions, w as weappWebPlugin } from './plugin-C1f_qgnH.js';
|