miaoda-expo-devkit 0.1.1-beta.17 → 0.1.1-beta.19
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/plugin-lucide-react-native.d.ts +25 -0
- package/dist/babel/plugin-lucide-react-native.js +14723 -0
- package/dist/babel/preset.d.ts +8 -0
- package/dist/babel/preset.js +7 -5
- package/dist/cli/lint.js +2 -0
- package/dist/metro.d.mts +7 -7
- package/dist/metro.d.ts +7 -7
- package/dist/metro.js +15 -10
- package/dist/metro.mjs +15 -10
- package/dist/rules/no-duplicate-expo-router-url.js +1 -1
- package/dist/stubs/expo-notifications-stub.js +9 -3
- package/package.json +20 -9
- package/tsconfig-base.json +7 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import babelCore from '@babel/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* babel-plugin-lucide-react-native
|
|
5
|
+
*
|
|
6
|
+
* 将 lucide-react-native 的具名导入转换为按图标文件直接导入,绕过 Metro
|
|
7
|
+
* 缺乏 tree-shaking 的问题,避免将整个图标库打进 bundle。
|
|
8
|
+
*
|
|
9
|
+
* 转换示意:
|
|
10
|
+
* import { Star, BookHeart } from "lucide-react-native"
|
|
11
|
+
* →
|
|
12
|
+
* import _Star from "lucide-react-native/dist/cjs/icons/star"
|
|
13
|
+
* import _BookHeart from "lucide-react-native/dist/cjs/icons/book-heart"
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
type Core = typeof babelCore;
|
|
17
|
+
interface Config extends babelCore.PluginPass {
|
|
18
|
+
opts: {
|
|
19
|
+
/** 使用 ESM 格式(dist/esm)。默认 false,使用 CJS(dist/cjs)。 */
|
|
20
|
+
useES?: boolean;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
declare function lucideReactNativePlugin({ types: t }: Core): babelCore.PluginObj<Config>;
|
|
24
|
+
|
|
25
|
+
export { lucideReactNativePlugin as default };
|