@fto-consult/expo-ui 6.18.1 → 6.18.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/babel.config.js +0 -1
- package/metro.config.js +1 -0
- package/package.json +1 -1
- package/webpack.config.js +5 -5
package/babel.config.js
CHANGED
|
@@ -11,7 +11,6 @@ module.exports = function(api,opts) {
|
|
|
11
11
|
const dir = path.resolve(__dirname);
|
|
12
12
|
typeof api.cache =='function' && api.cache(true);
|
|
13
13
|
const options = {base:dir,...opts,platform:"expo"};
|
|
14
|
-
require("./copy-env-file")();
|
|
15
14
|
/*** par défaut, les variables d'environnements sont stockés dans le fichier .env situé à la racine du projet, référencée par la prop base */
|
|
16
15
|
const alias = require("./babel.config.alias")(options);
|
|
17
16
|
const $eelectron = alias.$eelectron || null;
|
package/metro.config.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const path = require("path");
|
|
2
2
|
const fs = require("fs");
|
|
3
|
+
require("./copy-env-file")();
|
|
3
4
|
module.exports = function(opts){
|
|
4
5
|
const nodeModulePath = `${process.cwd()}/node_modules`;
|
|
5
6
|
const mConfigPath = fs.existsSync(`${nodeModulePath}/@expo/metro-config`) && `${nodeModulePath}/@expo/metro-config` || "@expo/metro-config";
|
package/package.json
CHANGED
package/webpack.config.js
CHANGED
|
@@ -79,11 +79,11 @@ module.exports = async function(env, argv,opts) {
|
|
|
79
79
|
//writeFile(path.resolve(__dirname,"is-electron-platform.txt"),` ${JSON.stringify(extensions)} is extensions to resolve`)
|
|
80
80
|
}
|
|
81
81
|
//fix process is not defined
|
|
82
|
-
config.plugins.unshift(new webpack.ProvidePlugin({
|
|
82
|
+
/*config.plugins.unshift(new webpack.ProvidePlugin({
|
|
83
83
|
process: 'process/browser',
|
|
84
|
-
}))
|
|
85
|
-
config.resolve.alias.process = "process/browser";
|
|
86
|
-
config.resolve.fallback = typeof config.resolve.fallback =="object" && config.resolve.fallback || {};
|
|
87
|
-
config.resolve.fallback = {...config.resolve.fallback,process: require.resolve('process/browser')};
|
|
84
|
+
}));*/
|
|
85
|
+
//config.resolve.alias.process = "process/browser";
|
|
86
|
+
//config.resolve.fallback = typeof config.resolve.fallback =="object" && config.resolve.fallback || {};
|
|
87
|
+
//config.resolve.fallback = {...config.resolve.fallback,process: require.resolve('process/browser')};
|
|
88
88
|
return config;
|
|
89
89
|
};;
|