miaoda-expo-devkit 0.1.1-beta.76 → 0.1.1-beta.78
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/babel/preset.js +5 -3
- package/dist/metro.js +8 -10
- package/dist/metro.mjs +8 -10
- package/package.json +5 -1
package/dist/babel/preset.js
CHANGED
|
@@ -42,8 +42,8 @@ function presetExpoDevkit(api, options = {}) {
|
|
|
42
42
|
presets: [
|
|
43
43
|
["babel-preset-expo", {
|
|
44
44
|
jsxImportSource: "nativewind",
|
|
45
|
-
//
|
|
46
|
-
|
|
45
|
+
// 全平台禁止自动注入,由下方手动注入统一管理
|
|
46
|
+
worklets: false
|
|
47
47
|
}],
|
|
48
48
|
"nativewind/babel"
|
|
49
49
|
],
|
|
@@ -52,7 +52,9 @@ function presetExpoDevkit(api, options = {}) {
|
|
|
52
52
|
...lucide !== false ? [[require.resolve("./plugin-lucide-react-native"), lucide]] : [],
|
|
53
53
|
// jsx-source 仅开发环境注入,生产无需调试元数据
|
|
54
54
|
...isDev ? [[require.resolve("./plugin-jsx-source"), { rootDir, excludePaths }]] : [],
|
|
55
|
-
//
|
|
55
|
+
// native:标准注入
|
|
56
|
+
...!isWeb ? [[workletsPlugin]] : [],
|
|
57
|
+
// web:跳过 native 专属的 __initData 字符串化,减少 transform 开销
|
|
56
58
|
...isWeb ? [[workletsPlugin, { omitNativeOnlyData: true, substituteWebPlatformChecks: true }]] : []
|
|
57
59
|
]
|
|
58
60
|
};
|
package/dist/metro.js
CHANGED
|
@@ -616,16 +616,14 @@ function withPersistentCache(config, options = {}) {
|
|
|
616
616
|
return {
|
|
617
617
|
...config,
|
|
618
618
|
// transform cache:JS/TS 编译结果
|
|
619
|
-
cacheStores: [new StoreClass({ root: cacheRoot })]
|
|
620
|
-
// FileMap cache
|
|
621
|
-
//
|
|
622
|
-
fileMapCacheDirectory: cacheRoot,
|
|
623
|
-
watcher: {
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
unstable_autoSaveCache: { enabled: true }
|
|
628
|
-
}
|
|
619
|
+
cacheStores: [new StoreClass({ root: cacheRoot })]
|
|
620
|
+
// FileMap cache 暂时禁用:pnpm install 每次重建 symlink 导致 30839 fake changes,
|
|
621
|
+
// 加载旧缓存反而比冷启动更慢,触发 120s 超时。
|
|
622
|
+
// fileMapCacheDirectory: cacheRoot,
|
|
623
|
+
// watcher: {
|
|
624
|
+
// ...config.watcher,
|
|
625
|
+
// unstable_autoSaveCache: { enabled: true },
|
|
626
|
+
// },
|
|
629
627
|
};
|
|
630
628
|
}
|
|
631
629
|
|
package/dist/metro.mjs
CHANGED
|
@@ -567,16 +567,14 @@ function withPersistentCache(config, options = {}) {
|
|
|
567
567
|
return {
|
|
568
568
|
...config,
|
|
569
569
|
// transform cache:JS/TS 编译结果
|
|
570
|
-
cacheStores: [new StoreClass({ root: cacheRoot })]
|
|
571
|
-
// FileMap cache
|
|
572
|
-
//
|
|
573
|
-
fileMapCacheDirectory: cacheRoot,
|
|
574
|
-
watcher: {
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
unstable_autoSaveCache: { enabled: true }
|
|
579
|
-
}
|
|
570
|
+
cacheStores: [new StoreClass({ root: cacheRoot })]
|
|
571
|
+
// FileMap cache 暂时禁用:pnpm install 每次重建 symlink 导致 30839 fake changes,
|
|
572
|
+
// 加载旧缓存反而比冷启动更慢,触发 120s 超时。
|
|
573
|
+
// fileMapCacheDirectory: cacheRoot,
|
|
574
|
+
// watcher: {
|
|
575
|
+
// ...config.watcher,
|
|
576
|
+
// unstable_autoSaveCache: { enabled: true },
|
|
577
|
+
// },
|
|
580
578
|
};
|
|
581
579
|
}
|
|
582
580
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "miaoda-expo-devkit",
|
|
3
|
-
"version": "0.1.1-beta.
|
|
3
|
+
"version": "0.1.1-beta.78",
|
|
4
4
|
"description": "Expo 应用开发工具集:Sentry DSN 替换 stub、错误/网络捕获、Metro 符号化",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
"nativewind": ">=4.0.0",
|
|
94
94
|
"react-native": ">=0.79.0",
|
|
95
95
|
"react-native-css-interop": ">=0.2.0",
|
|
96
|
+
"react-native-worklets": ">=0.7.0",
|
|
96
97
|
"typescript": ">=5.0.0"
|
|
97
98
|
},
|
|
98
99
|
"peerDependenciesMeta": {
|
|
@@ -123,6 +124,9 @@
|
|
|
123
124
|
"react-native-css-interop": {
|
|
124
125
|
"optional": true
|
|
125
126
|
},
|
|
127
|
+
"react-native-worklets": {
|
|
128
|
+
"optional": true
|
|
129
|
+
},
|
|
126
130
|
"typescript": {
|
|
127
131
|
"optional": true
|
|
128
132
|
}
|