@startupjs/bundler 0.56.0-alpha.42 → 0.56.0-alpha.47

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 +3 -2
  2. package/package.json +4 -4
package/metro-config.js CHANGED
@@ -33,8 +33,9 @@ exports.getDefaultConfig = function getDefaultConfig (projectRoot, { upstreamCon
33
33
  }
34
34
  }
35
35
 
36
- // Add startupjs server middleware
37
- if (features.enableServer) addServer(config)
36
+ // Add startupjs server middleware.
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
39
 
39
40
  // Support Yarn's `resolutions` field from doing `yarn link`
40
41
  if (packageJson.resolutions) addYarnLink(config, { packageJson, projectRoot })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startupjs/bundler",
3
- "version": "0.56.0-alpha.42",
3
+ "version": "0.56.0-alpha.47",
4
4
  "description": "Opinionated scripts and configs to develop a react-native-web project",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
@@ -28,7 +28,7 @@
28
28
  "@startupjs/babel-plugin-transform-react-pug": "^7.0.1-0",
29
29
  "@startupjs/css-to-react-native-transform": "^1.9.0-2",
30
30
  "@startupjs/plugin": "^0.56.0-alpha.0",
31
- "@startupjs/server": "^0.56.0-alpha.42",
31
+ "@startupjs/server": "^0.56.0-alpha.47",
32
32
  "@svgr/core": "^8.1.0",
33
33
  "@svgr/plugin-jsx": "^8.1.0",
34
34
  "@svgr/plugin-svgo": "^8.1.0",
@@ -36,7 +36,7 @@
36
36
  "assets-webpack-plugin": "^7.1.1",
37
37
  "autoprefixer": "^10.4.0",
38
38
  "babel-loader": "^8.2.3",
39
- "babel-preset-startupjs": "^0.56.0-alpha.42",
39
+ "babel-preset-startupjs": "^0.56.0-alpha.47",
40
40
  "connect": "^3.7.0",
41
41
  "css-loader": "^6.5.0",
42
42
  "css-minimizer-webpack-plugin": "^5.0.0",
@@ -60,5 +60,5 @@
60
60
  "peerDependencies": {
61
61
  "react-native-svg": "*"
62
62
  },
63
- "gitHead": "bb0a98b7a2b4f969cef0af3048d71e049103feb2"
63
+ "gitHead": "a27cd738a659cd7e27e8791dca092bfd769afabc"
64
64
  }