vite-plugin-react-native-web 3.1.0 → 3.1.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 +15 -1
- package/dist/es/index.js +15 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -91,6 +91,13 @@ const optimizeDepsInclude = [
|
|
|
91
91
|
"inline-style-prefixer/lib/plugins/sizing",
|
|
92
92
|
"inline-style-prefixer/lib/plugins/transition"
|
|
93
93
|
];
|
|
94
|
+
const silencedLogs = [{
|
|
95
|
+
code: "EVAL",
|
|
96
|
+
file: "expo/src/async-require/fetchThenEvalJs.ts"
|
|
97
|
+
}, {
|
|
98
|
+
code: "EVAL",
|
|
99
|
+
file: "expo-modules-core/src/uuid/index.web.ts"
|
|
100
|
+
}];
|
|
94
101
|
const reactNativeWeb = (_options) => ({
|
|
95
102
|
enforce: "pre",
|
|
96
103
|
name: "react-native-web",
|
|
@@ -113,7 +120,14 @@ const reactNativeWeb = (_options) => ({
|
|
|
113
120
|
shimMissingExports: true,
|
|
114
121
|
treeshake: treeshakePreset,
|
|
115
122
|
moduleTypes,
|
|
116
|
-
plugins: [flowRemoveTypesPlugin(), treeshakeFixPlugin()]
|
|
123
|
+
plugins: [flowRemoveTypesPlugin(), treeshakeFixPlugin()],
|
|
124
|
+
onLog(level, log, defaultHandler) {
|
|
125
|
+
var _a;
|
|
126
|
+
const code = log.code;
|
|
127
|
+
const file = (_a = log.loc) === null || _a === void 0 ? void 0 : _a.file;
|
|
128
|
+
if (code && file && silencedLogs.some((silencedLog) => code === silencedLog.code && file.includes(silencedLog.file))) return;
|
|
129
|
+
defaultHandler(level, log);
|
|
130
|
+
}
|
|
117
131
|
} },
|
|
118
132
|
optimizeDeps: {
|
|
119
133
|
include: optimizeDepsInclude,
|
package/dist/es/index.js
CHANGED
|
@@ -64,6 +64,13 @@ const optimizeDepsInclude = [
|
|
|
64
64
|
"inline-style-prefixer/lib/plugins/sizing",
|
|
65
65
|
"inline-style-prefixer/lib/plugins/transition"
|
|
66
66
|
];
|
|
67
|
+
const silencedLogs = [{
|
|
68
|
+
code: "EVAL",
|
|
69
|
+
file: "expo/src/async-require/fetchThenEvalJs.ts"
|
|
70
|
+
}, {
|
|
71
|
+
code: "EVAL",
|
|
72
|
+
file: "expo-modules-core/src/uuid/index.web.ts"
|
|
73
|
+
}];
|
|
67
74
|
const reactNativeWeb = (_options) => ({
|
|
68
75
|
enforce: "pre",
|
|
69
76
|
name: "react-native-web",
|
|
@@ -86,7 +93,14 @@ const reactNativeWeb = (_options) => ({
|
|
|
86
93
|
shimMissingExports: true,
|
|
87
94
|
treeshake: treeshakePreset,
|
|
88
95
|
moduleTypes,
|
|
89
|
-
plugins: [flowRemoveTypesPlugin(), treeshakeFixPlugin()]
|
|
96
|
+
plugins: [flowRemoveTypesPlugin(), treeshakeFixPlugin()],
|
|
97
|
+
onLog(level, log, defaultHandler) {
|
|
98
|
+
var _a;
|
|
99
|
+
const code = log.code;
|
|
100
|
+
const file = (_a = log.loc) === null || _a === void 0 ? void 0 : _a.file;
|
|
101
|
+
if (code && file && silencedLogs.some((silencedLog) => code === silencedLog.code && file.includes(silencedLog.file))) return;
|
|
102
|
+
defaultHandler(level, log);
|
|
103
|
+
}
|
|
90
104
|
} },
|
|
91
105
|
optimizeDeps: {
|
|
92
106
|
include: optimizeDepsInclude,
|