miaoda-expo-devkit 0.1.1-beta.13 → 0.1.1-beta.14

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/metro.d.mts CHANGED
@@ -230,7 +230,9 @@ declare function withWorkspaceNodeModules(config: MetroConfig): MetroConfig;
230
230
  * - expo-camera:CameraView 组件(className → style)
231
231
  * - expo-linear-gradient:LinearGradient 组件(className → style)
232
232
  * - expo-blur:BlurView / BlurTargetView 组件(className → style)
233
- * - react-native-reanimated:Animated.View / ScrollView / Text / Image / FlatList(className → style)
233
+ *
234
+ * 注意:react-native-reanimated 不拦截。cssInterop 全局注册 Animated.* 会导致所有动画 style 注入失败。
235
+ * 需要同时使用 Tailwind className 和动画的场景,请在组件层面单独用 createAnimatedComponent + cssInterop 封装。
234
236
  *
235
237
  * 注意:expo-video 的 VideoView 在 web 上直接渲染 DOM <video> 元素,不经过 RN 样式系统,
236
238
  * cssInterop/remapProps 均无效,不做拦截。需要 className 时请用 View 包裹 VideoView。
package/dist/metro.d.ts CHANGED
@@ -230,7 +230,9 @@ declare function withWorkspaceNodeModules(config: MetroConfig): MetroConfig;
230
230
  * - expo-camera:CameraView 组件(className → style)
231
231
  * - expo-linear-gradient:LinearGradient 组件(className → style)
232
232
  * - expo-blur:BlurView / BlurTargetView 组件(className → style)
233
- * - react-native-reanimated:Animated.View / ScrollView / Text / Image / FlatList(className → style)
233
+ *
234
+ * 注意:react-native-reanimated 不拦截。cssInterop 全局注册 Animated.* 会导致所有动画 style 注入失败。
235
+ * 需要同时使用 Tailwind className 和动画的场景,请在组件层面单独用 createAnimatedComponent + cssInterop 封装。
234
236
  *
235
237
  * 注意:expo-video 的 VideoView 在 web 上直接渲染 DOM <video> 元素,不经过 RN 样式系统,
236
238
  * cssInterop/remapProps 均无效,不做拦截。需要 className 时请用 View 包裹 VideoView。
package/dist/metro.js CHANGED
@@ -251,8 +251,6 @@ var EXPO_CAMERA_STUB_FILENAME = "expo-camera-stub.js";
251
251
  var EXPO_CAMERA_STUB_PATH = import_path6.default.resolve(__dirname, "stubs", EXPO_CAMERA_STUB_FILENAME);
252
252
  var EXPO_LINEAR_GRADIENT_STUB_FILENAME = "expo-linear-gradient-stub.js";
253
253
  var EXPO_LINEAR_GRADIENT_STUB_PATH = import_path6.default.resolve(__dirname, "stubs", EXPO_LINEAR_GRADIENT_STUB_FILENAME);
254
- var REANIMATED_STUB_FILENAME = "react-native-reanimated-stub.js";
255
- var REANIMATED_STUB_PATH = import_path6.default.resolve(__dirname, "stubs", REANIMATED_STUB_FILENAME);
256
254
  var EXPO_BLUR_STUB_FILENAME = "expo-blur-stub.js";
257
255
  var EXPO_BLUR_STUB_PATH = import_path6.default.resolve(__dirname, "stubs", EXPO_BLUR_STUB_FILENAME);
258
256
  function withCssInterop(config) {
@@ -267,9 +265,6 @@ function withCssInterop(config) {
267
265
  if (moduleName === "expo-linear-gradient" && !context.originModulePath.includes(EXPO_LINEAR_GRADIENT_STUB_FILENAME)) {
268
266
  return { filePath: EXPO_LINEAR_GRADIENT_STUB_PATH, type: "sourceFile" };
269
267
  }
270
- if (moduleName === "react-native-reanimated" && !context.originModulePath.includes(REANIMATED_STUB_FILENAME)) {
271
- return { filePath: REANIMATED_STUB_PATH, type: "sourceFile" };
272
- }
273
268
  if (moduleName === "expo-blur" && !context.originModulePath.includes(EXPO_BLUR_STUB_FILENAME)) {
274
269
  return { filePath: EXPO_BLUR_STUB_PATH, type: "sourceFile" };
275
270
  }
package/dist/metro.mjs CHANGED
@@ -214,8 +214,6 @@ var EXPO_CAMERA_STUB_FILENAME = "expo-camera-stub.js";
214
214
  var EXPO_CAMERA_STUB_PATH = path6.resolve(__dirname, "stubs", EXPO_CAMERA_STUB_FILENAME);
215
215
  var EXPO_LINEAR_GRADIENT_STUB_FILENAME = "expo-linear-gradient-stub.js";
216
216
  var EXPO_LINEAR_GRADIENT_STUB_PATH = path6.resolve(__dirname, "stubs", EXPO_LINEAR_GRADIENT_STUB_FILENAME);
217
- var REANIMATED_STUB_FILENAME = "react-native-reanimated-stub.js";
218
- var REANIMATED_STUB_PATH = path6.resolve(__dirname, "stubs", REANIMATED_STUB_FILENAME);
219
217
  var EXPO_BLUR_STUB_FILENAME = "expo-blur-stub.js";
220
218
  var EXPO_BLUR_STUB_PATH = path6.resolve(__dirname, "stubs", EXPO_BLUR_STUB_FILENAME);
221
219
  function withCssInterop(config) {
@@ -230,9 +228,6 @@ function withCssInterop(config) {
230
228
  if (moduleName === "expo-linear-gradient" && !context.originModulePath.includes(EXPO_LINEAR_GRADIENT_STUB_FILENAME)) {
231
229
  return { filePath: EXPO_LINEAR_GRADIENT_STUB_PATH, type: "sourceFile" };
232
230
  }
233
- if (moduleName === "react-native-reanimated" && !context.originModulePath.includes(REANIMATED_STUB_FILENAME)) {
234
- return { filePath: REANIMATED_STUB_PATH, type: "sourceFile" };
235
- }
236
231
  if (moduleName === "expo-blur" && !context.originModulePath.includes(EXPO_BLUR_STUB_FILENAME)) {
237
232
  return { filePath: EXPO_BLUR_STUB_PATH, type: "sourceFile" };
238
233
  }
@@ -81,6 +81,7 @@ var KNOWN_CONFIG_PLUGIN_PACKAGES = /* @__PURE__ */ new Set([
81
81
  "expo-widgets"
82
82
  ]);
83
83
  var pluginsCache = /* @__PURE__ */ new Map();
84
+ var reportedPackages = /* @__PURE__ */ new Set();
84
85
  function findProjectRoot(startPath) {
85
86
  let dir = import_node_path.default.dirname(startPath);
86
87
  while (dir !== import_node_path.default.dirname(dir)) {
@@ -132,6 +133,9 @@ var requireExpoPluginRule = {
132
133
  if (!pkg) return;
133
134
  if (!KNOWN_CONFIG_PLUGIN_PACKAGES.has(pkg)) return;
134
135
  if (declaredPlugins.includes(pkg)) return;
136
+ const reportKey = `${projectRoot}::${pkg}`;
137
+ if (reportedPackages.has(reportKey)) return;
138
+ reportedPackages.add(reportKey);
135
139
  context.report({
136
140
  node,
137
141
  messageId: "missingPlugin",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miaoda-expo-devkit",
3
- "version": "0.1.1-beta.13",
3
+ "version": "0.1.1-beta.14",
4
4
  "description": "Expo 应用开发工具集:Sentry DSN 替换 stub、错误/网络捕获、Metro 符号化",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
@@ -1,32 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from === "object" || typeof from === "function") {
10
- for (let key of __getOwnPropNames(from))
11
- if (!__hasOwnProp.call(to, key) && key !== except)
12
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- }
14
- return to;
15
- };
16
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
- // If the importer is in node compatibility mode or this is not an ESM
18
- // file that has been converted to a CommonJS file using a Babel-
19
- // compatible transform (i.e. "__esModule" has not been set), then set
20
- // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
- mod
23
- ));
24
- var Reanimated = __toESM(require("react-native-reanimated"));
25
- var import_nativewind = require("nativewind");
26
- (0, import_nativewind.cssInterop)(Reanimated.default.View, { className: "style" });
27
- (0, import_nativewind.cssInterop)(Reanimated.default.ScrollView, { className: "style" });
28
- (0, import_nativewind.cssInterop)(Reanimated.default.Text, { className: "style" });
29
- (0, import_nativewind.cssInterop)(Reanimated.default.Image, { className: "style" });
30
- (0, import_nativewind.cssInterop)(Reanimated.default.FlatList, { className: "style" });
31
- module.exports = Reanimated;
32
- //# sourceMappingURL=react-native-reanimated-stub.js.map