@yeeyoon/library 1.9.5 → 1.9.9
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/lib/config/config.js +0 -4
- package/lib/config/env.js +4 -1
- package/package.json +1 -1
package/lib/config/config.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
const theme = require('../styles/design-system-theme');
|
|
2
|
-
const loading = require('../components/PageLoading/index');
|
|
3
2
|
|
|
4
3
|
const { REACT_APP_ENV } = process.env;
|
|
5
4
|
|
|
@@ -21,9 +20,6 @@ const config = {
|
|
|
21
20
|
// default true, when it is true, will use `navigator.language` overwrite default
|
|
22
21
|
baseNavigator: true,
|
|
23
22
|
},
|
|
24
|
-
dynamicImport: {
|
|
25
|
-
loading,
|
|
26
|
-
},
|
|
27
23
|
targets: {
|
|
28
24
|
ie: 11,
|
|
29
25
|
},
|
package/lib/config/env.js
CHANGED
|
@@ -53,11 +53,14 @@ export function getEnvHost(product, env, path = '') {
|
|
|
53
53
|
}
|
|
54
54
|
if (product === 'official') {
|
|
55
55
|
product = '';
|
|
56
|
+
} else {
|
|
57
|
+
product = `-${product}`;
|
|
56
58
|
}
|
|
57
|
-
return `${prefix}${env}
|
|
59
|
+
return `${prefix}${env}${product}${suffix}${path}`;
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
export function getEnvApi(product, env) {
|
|
63
|
+
env = env === 'dev' ? 'testing' : env;
|
|
61
64
|
const api = envApi[product][env];
|
|
62
65
|
return `https://${api}.yeeyoon.com`;
|
|
63
66
|
}
|