@fto-consult/expo-ui 6.51.1 → 6.51.3
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/app.json +1 -1
- package/bin/create-app.js +1 -1
- package/metro.config.js +5 -4
- package/package.json +2 -2
package/app.json
CHANGED
package/bin/create-app.js
CHANGED
package/metro.config.js
CHANGED
@@ -10,7 +10,7 @@ module.exports = function(opts){
|
|
10
10
|
sourceExts= Array.isArray(sourceExts)?sourceExts : [];
|
11
11
|
const projectRoot = path.resolve(process.cwd());
|
12
12
|
const localDir = path.resolve(__dirname);
|
13
|
-
const transpilePath = require("./create-transpile-module-transformer")(opts);
|
13
|
+
const transpilePath = null;//require("./create-transpile-module-transformer")(opts);
|
14
14
|
const hasTranspilePath = typeof transpilePath =='string' && transpilePath && fs.existsSync(transpilePath);
|
15
15
|
//@see : https://docs.expo.dev/versions/latest/config/metro/
|
16
16
|
const config = getDefaultConfig(projectRoot,{
|
@@ -18,6 +18,9 @@ module.exports = function(opts){
|
|
18
18
|
isCSSEnabled: true,
|
19
19
|
mode: hasTranspilePath && 'exotic' || undefined,
|
20
20
|
});
|
21
|
+
if(hasTranspilePath){
|
22
|
+
config.transformer.babelTransformerPath = transpilePath;
|
23
|
+
}
|
21
24
|
config.watchFolders = Array.isArray(config.watchFolders) && config.watchFolders || [];
|
22
25
|
const isLocalTest = require("./is-local-dev")();
|
23
26
|
if(!isLocalTest){
|
@@ -42,9 +45,7 @@ module.exports = function(opts){
|
|
42
45
|
...sourceExts,"txt",
|
43
46
|
'jsx', 'js','tsx',
|
44
47
|
]
|
45
|
-
|
46
|
-
config.transformer.babelTransformerPath = transpilePath;
|
47
|
-
}
|
48
|
+
|
48
49
|
// Remove all console logs in production...
|
49
50
|
config.transformer.minifierConfig.compress.drop_console = false;
|
50
51
|
/*config.platforms = Array.isArray(config.platforms) && config.platforms || [];
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fto-consult/expo-ui",
|
3
|
-
"version": "6.51.
|
3
|
+
"version": "6.51.3",
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
5
5
|
"main": "main",
|
6
6
|
"scripts": {
|
@@ -70,7 +70,7 @@
|
|
70
70
|
"@expo/html-elements": "^0.5.1",
|
71
71
|
"@expo/vector-icons": "^13.0.0",
|
72
72
|
"@faker-js/faker": "^8.0.2",
|
73
|
-
"@fto-consult/common": "^3.45.
|
73
|
+
"@fto-consult/common": "^3.45.6",
|
74
74
|
"@pchmn/expo-material3-theme": "^1.3.1",
|
75
75
|
"@react-native-async-storage/async-storage": "1.18.2",
|
76
76
|
"@react-native-community/datetimepicker": "7.2.0",
|