befly-vite 1.4.8 → 1.4.9
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/package.json
CHANGED
|
@@ -7,17 +7,24 @@ export function createReactivityTransformPlugin() {
|
|
|
7
7
|
include: [
|
|
8
8
|
// Vite 对 .vue SFC 子模块会追加 query(如 ?vue&type=script),因此需要允许可选 query
|
|
9
9
|
/[\\/]src[\\/].*\.(vue|ts|tsx)(\?.*)?$/,
|
|
10
|
+
|
|
10
11
|
// workspace 内的 addon 视图(如 packages/addonAdmin/adminViews)属于源码,需要宏转换
|
|
11
12
|
/[\\/]packages[\\/].*[\\/](adminViews|appViews)[\\/].*\.vue(\?.*)?$/,
|
|
13
|
+
|
|
12
14
|
// node_modules 内的 @befly-addon 视图也属于源码,需要宏转换
|
|
13
|
-
/[\\/]node_modules[\\/]@befly-addon[\\/].*[\\/](adminViews|appViews)[\\/].*\.vue(\?.*)
|
|
15
|
+
/[\\/]node_modules[\\/]@befly-addon[\\/].*[\\/](adminViews|appViews)[\\/].*\.vue(\?.*)?$/,
|
|
16
|
+
|
|
17
|
+
// Bun isolated linker:真实路径通常为 node_modules/.bun/**/node_modules/@befly-addon/**
|
|
18
|
+
/[\\/]node_modules[\\/]\\.bun[\\/].*[\\/]node_modules[\\/]@befly-addon[\\/].*[\\/](adminViews|appViews)[\\/].*\.vue(\?.*)?$/
|
|
14
19
|
],
|
|
15
20
|
exclude: [
|
|
16
21
|
// 排除绝大多数 node_modules,但保留 @befly-addon(其内部视图属于源码,需要宏转换)
|
|
17
|
-
|
|
22
|
+
// 同时放行 Bun store 的 .bun/**/node_modules/@befly-addon/** 形态,避免被误伤导致 $ref 未转换
|
|
23
|
+
/[\\/]node_modules[\\/](?!@befly-addon[\\/]|\\.bun[\\/].*[\\/]node_modules[\\/]@befly-addon[\\/])/,
|
|
24
|
+
|
|
18
25
|
/[\\/]dist[\\/]/,
|
|
19
26
|
/[\\/]temp[\\/]/,
|
|
20
|
-
/[\\/]
|
|
27
|
+
/[\\/]\\.git[\\/]/
|
|
21
28
|
]
|
|
22
29
|
});
|
|
23
30
|
}
|