@startupjs/bundler 0.57.0-canary.61 → 0.57.0-canary.64

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 -1
  2. package/package.json +3 -3
package/metro-config.js CHANGED
@@ -35,7 +35,7 @@ exports.getDefaultConfig = function getDefaultConfig (projectRoot, { upstreamCon
35
35
 
36
36
  // Add startupjs server middleware.
37
37
  // Unless we're building (yarn build), in which case we don't need it.
38
- if (!process.env.IS_BUILD && features.enableServer) addServer(config)
38
+ if (!isBuild() && features.enableServer) addServer(config)
39
39
 
40
40
  // Support Yarn's `resolutions` field from doing `yarn link`
41
41
  handleYarnLink(config, { packageJson, projectRoot })
@@ -43,6 +43,10 @@ exports.getDefaultConfig = function getDefaultConfig (projectRoot, { upstreamCon
43
43
  return config
44
44
  }
45
45
 
46
+ function isBuild () {
47
+ return process.env.IS_BUILD || process.env.CI || process.env.EAS_BUILD
48
+ }
49
+
46
50
  function addServer (config) {
47
51
  config.server ??= {}
48
52
  config.server.enhanceMiddleware = metroMiddleware =>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startupjs/bundler",
3
- "version": "0.57.0-canary.61",
3
+ "version": "0.57.0-canary.64",
4
4
  "description": "Opinionated scripts and configs to develop a react-native-web project",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
@@ -35,7 +35,7 @@
35
35
  "assets-webpack-plugin": "^7.1.1",
36
36
  "autoprefixer": "^10.4.0",
37
37
  "babel-loader": "^8.2.3",
38
- "babel-preset-startupjs": "^0.57.0-canary.61",
38
+ "babel-preset-startupjs": "^0.57.0-canary.64",
39
39
  "connect": "^3.7.0",
40
40
  "css-loader": "^6.5.0",
41
41
  "css-minimizer-webpack-plugin": "^5.0.0",
@@ -59,5 +59,5 @@
59
59
  "peerDependencies": {
60
60
  "react-native-svg": "*"
61
61
  },
62
- "gitHead": "2bf998486cadc27fbc371bb264c49680aa1c3b22"
62
+ "gitHead": "e64583ad08bfe947ceddb595fae926eb1bd683d5"
63
63
  }