@dr.pogodin/react-utils 1.15.2 → 1.15.5
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/dev-styles.js +0 -0
- package/node-entry.js +9 -4
- package/package.json +3 -3
- package/prod-styles.js +0 -0
package/dev-styles.js
ADDED
|
File without changes
|
package/node-entry.js
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// This permits to load the library in react-native, or other environment that
|
|
2
|
+
// does not have __dirname global. It probably breaks a few node-specific lib
|
|
3
|
+
// pieces, but that does not seem to prevent more relevant parts from working.
|
|
4
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
5
|
+
if (typeof __dirname === 'undefined') global.__dirname = '';
|
|
3
6
|
|
|
4
|
-
//
|
|
5
|
-
|
|
7
|
+
// Again, for react-native, and maybe some other environments, we need
|
|
8
|
+
// to have no dynamic requires below (i.e. can't do require(`./build/${env}`)).
|
|
9
|
+
module.exports = process.env.NODE_ENV === 'production'
|
|
10
|
+
? require('./build/production') : require('./build/development');
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.15.
|
|
2
|
+
"version": "1.15.5",
|
|
3
3
|
"bin": {
|
|
4
4
|
"react-utils-build": "bin/build.js",
|
|
5
5
|
"react-utils-setup": "bin/setup.js"
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@babel/runtime": "^7.17.2",
|
|
12
|
-
"@dr.pogodin/babel-plugin-react-css-modules": "^6.
|
|
12
|
+
"@dr.pogodin/babel-plugin-react-css-modules": "^6.8.0",
|
|
13
13
|
"@dr.pogodin/react-global-state": "^0.7.1",
|
|
14
14
|
"@dr.pogodin/react-themes": "^1.4.1",
|
|
15
|
-
"axios": "^0.26.
|
|
15
|
+
"axios": "^0.26.1",
|
|
16
16
|
"commander": "^9.0.0",
|
|
17
17
|
"compression": "^1.7.4",
|
|
18
18
|
"config": "^3.3.7",
|
package/prod-styles.js
ADDED
|
File without changes
|