@weapp-vite/web 1.2.4 → 1.3.1

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.
@@ -37,7 +37,32 @@ interface WeappWebPluginOptions {
37
37
  */
38
38
  preventDefault?: boolean;
39
39
  };
40
+ /**
41
+ * Web 运行时执行策略。
42
+ */
43
+ runtime?: {
44
+ /**
45
+ * 表达式与 WXS 执行模式:
46
+ * - compat: 保持当前行为(默认)
47
+ * - safe: 忽略解析/执行异常并告警
48
+ * - strict: 解析/执行异常直接抛错
49
+ */
50
+ executionMode?: 'compat' | 'safe' | 'strict';
51
+ /**
52
+ * 运行时告警策略:
53
+ * - warn: 使用 console.warn 输出(默认)
54
+ * - error: 使用 console.error 输出
55
+ * - off: 关闭告警输出
56
+ *
57
+ * dedupe 为 true 时同 key 告警仅输出一次(默认)。
58
+ */
59
+ warnings?: {
60
+ level?: 'off' | 'warn' | 'error';
61
+ dedupe?: boolean;
62
+ };
63
+ };
40
64
  }
65
+
41
66
  declare function weappWebPlugin(options?: WeappWebPluginOptions): Plugin;
42
67
 
43
68
  export { type WeappWebPluginOptions as W, transformWxssToCss as t, weappWebPlugin as w };
package/dist/plugin.d.ts CHANGED
@@ -1,2 +1,2 @@
1
+ export { W as WeappWebPluginOptions, w as weappWebPlugin } from './plugin-D-Up1cFc.js';
1
2
  import 'vite';
2
- export { W as WeappWebPluginOptions, w as weappWebPlugin } from './plugin-D2-INTrF.js';