@startupjs/bundler 0.57.0-canary.61 → 0.57.0-canary.65
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/metro-config.js +5 -1
- package/package.json +4 -4
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 (!
|
|
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.
|
|
3
|
+
"version": "0.57.0-canary.65",
|
|
4
4
|
"description": "Opinionated scripts and configs to develop a react-native-web project",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@startupjs/babel-plugin-startupjs-plugins": "^0.57.0-canary.0",
|
|
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
|
-
"@startupjs/server": "^0.57.0-canary.
|
|
30
|
+
"@startupjs/server": "^0.57.0-canary.65",
|
|
31
31
|
"@svgr/core": "^8.1.0",
|
|
32
32
|
"@svgr/plugin-jsx": "^8.1.0",
|
|
33
33
|
"@svgr/plugin-svgo": "^8.1.0",
|
|
@@ -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.
|
|
38
|
+
"babel-preset-startupjs": "^0.57.0-canary.65",
|
|
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": "
|
|
62
|
+
"gitHead": "37902b644b79ec26f01503d62d3402cbd9e34783"
|
|
63
63
|
}
|