vite-plugin-react-native-web 3.0.0-rc.0 → 3.0.0-rc.1

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/cjs/index.js CHANGED
@@ -83,6 +83,11 @@ const moduleTypes = {
83
83
  ".js": "jsx",
84
84
  ".flow": "jsx"
85
85
  };
86
+ const optimizeDepsInclude = [
87
+ "expo",
88
+ "expo-modules-core",
89
+ "react-native"
90
+ ];
86
91
  const reactNativeWeb = (_options) => ({
87
92
  enforce: "pre",
88
93
  name: "react-native-web",
@@ -109,15 +114,18 @@ const reactNativeWeb = (_options) => ({
109
114
  typeExportsFixPlugin()
110
115
  ]
111
116
  } },
112
- optimizeDeps: { rolldownOptions: {
113
- resolve: { extensions },
114
- moduleTypes,
115
- plugins: [
116
- flowRemoveTypesPlugin(),
117
- treeshakeFixPlugin(),
118
- typeExportsFixPlugin()
119
- ]
120
- } }
117
+ optimizeDeps: {
118
+ include: optimizeDepsInclude,
119
+ rolldownOptions: {
120
+ resolve: { extensions },
121
+ moduleTypes,
122
+ plugins: [
123
+ flowRemoveTypesPlugin(),
124
+ treeshakeFixPlugin(),
125
+ typeExportsFixPlugin()
126
+ ]
127
+ }
128
+ }
121
129
  })
122
130
  });
123
131
  //#endregion
package/dist/es/index.js CHANGED
@@ -56,6 +56,11 @@ const moduleTypes = {
56
56
  ".js": "jsx",
57
57
  ".flow": "jsx"
58
58
  };
59
+ const optimizeDepsInclude = [
60
+ "expo",
61
+ "expo-modules-core",
62
+ "react-native"
63
+ ];
59
64
  const reactNativeWeb = (_options) => ({
60
65
  enforce: "pre",
61
66
  name: "react-native-web",
@@ -82,15 +87,18 @@ const reactNativeWeb = (_options) => ({
82
87
  typeExportsFixPlugin()
83
88
  ]
84
89
  } },
85
- optimizeDeps: { rolldownOptions: {
86
- resolve: { extensions },
87
- moduleTypes,
88
- plugins: [
89
- flowRemoveTypesPlugin(),
90
- treeshakeFixPlugin(),
91
- typeExportsFixPlugin()
92
- ]
93
- } }
90
+ optimizeDeps: {
91
+ include: optimizeDepsInclude,
92
+ rolldownOptions: {
93
+ resolve: { extensions },
94
+ moduleTypes,
95
+ plugins: [
96
+ flowRemoveTypesPlugin(),
97
+ treeshakeFixPlugin(),
98
+ typeExportsFixPlugin()
99
+ ]
100
+ }
101
+ }
94
102
  })
95
103
  });
96
104
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-react-native-web",
3
- "version": "3.0.0-rc.0",
3
+ "version": "3.0.0-rc.1",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"