vite-plugin-react-native-web 2.7.1 → 3.0.0-rc.0
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/README.md +9 -6
- package/dist/cjs/build2-DTMMS--0.js +5267 -0
- package/dist/cjs/chunk-D0RAK71K.js +75 -0
- package/dist/cjs/chunk-DyKKrNZQ.js +35 -0
- package/dist/cjs/index.js +122 -109
- package/dist/cjs/lib-Csqa2WBC.js +370 -0
- package/dist/cjs/node-BU5sMlzK.js +799 -0
- package/dist/cjs/postcss-DAB3_PkB.js +5428 -0
- package/dist/cjs/postcss-import-Ogs8NQqH.js +450 -0
- package/dist/cjs/prompt-BYQIwEjg-CGdBgYkO.js +850 -0
- package/dist/es/build2-D4SLif06.js +5267 -0
- package/dist/es/chunk-CRPLlQ3x.js +28 -0
- package/dist/es/chunk-CU5vi22U.js +39 -0
- package/dist/es/index.js +95 -104
- package/dist/es/lib-CK8QVVm9.js +365 -0
- package/dist/es/node-mn1xxwR1.js +790 -0
- package/dist/es/postcss-gI9snXny.js +3217 -0
- package/dist/es/postcss-import-BvPWe_Qj.js +450 -0
- package/dist/es/prompt-BYQIwEjg-C9BFbUKm.js +847 -0
- package/package.json +11 -10
- package/types/index.d.ts +2 -3
- package/dist/es/package.json +0 -1
package/README.md
CHANGED
|
@@ -22,12 +22,6 @@ export default defineConfig({
|
|
|
22
22
|
});
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
## Options
|
|
26
|
-
|
|
27
|
-
The plugin accepts an options object with the following optional properties:
|
|
28
|
-
|
|
29
|
-
- `enableExpoManualChunk` (boolean): When set to true, this option enables manual chunking for expo-modules-core modules to optimize bundle size and loading performance. Default is false. Be cautious when enabling this option, since it overrides user-defined manual chunks in the Vite configuration.
|
|
30
|
-
|
|
31
25
|
If you are getting errors please report them in the issues section.
|
|
32
26
|
|
|
33
27
|
The following variables are defined in the transformed files: (inferred during Vite's build process)
|
|
@@ -37,6 +31,11 @@ The following variables are defined in the transformed files: (inferred during V
|
|
|
37
31
|
- `process.env.NODE_ENV` as `process.env.NODE_ENV`
|
|
38
32
|
- `process.env.EXPO_OS` as `"web"`
|
|
39
33
|
|
|
34
|
+
## Examples
|
|
35
|
+
|
|
36
|
+
- [React + TypeScript + Vite + React Native Web Example](./apps/example)
|
|
37
|
+
- [React + TypeScript + Expo + Vite + React Native Web Example](./apps/expo-example)
|
|
38
|
+
|
|
40
39
|
## Contributing
|
|
41
40
|
|
|
42
41
|
Please feel free to contribute to this project. Just fork it and submit a PR.
|
|
@@ -48,3 +47,7 @@ MIT
|
|
|
48
47
|
```
|
|
49
48
|
|
|
50
49
|
```
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
```
|