@fto-consult/expo-ui 6.51.1 → 6.51.2

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.
Files changed (2) hide show
  1. package/metro.config.js +5 -4
  2. package/package.json +1 -1
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
- if(hasTranspilePath){
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.1",
3
+ "version": "6.51.2",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "main",
6
6
  "scripts": {