@salesforce/pwa-kit-dev 3.17.0 → 3.17.1
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/bin/pwa-kit-dev.js +7 -1
- package/package.json +4 -4
package/bin/pwa-kit-dev.js
CHANGED
|
@@ -254,10 +254,16 @@ const main = async () => {
|
|
|
254
254
|
process.exit(1)
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
+
// Load config to get envBasePath from ssrParameters for local development
|
|
258
|
+
// This mimics how MRT sets the MRT_ENV_BASE_PATH system environment variable
|
|
259
|
+
const config = getConfig() || {}
|
|
260
|
+
const envBasePath = config.ssrParameters?.envBasePath || ''
|
|
261
|
+
|
|
257
262
|
execSync(`${babelNode} ${inspect ? '--inspect' : ''} ${babelArgs} ${entrypoint}`, {
|
|
258
263
|
env: {
|
|
259
264
|
...process.env,
|
|
260
|
-
...(noHMR ? {HMR: 'false'} : {})
|
|
265
|
+
...(noHMR ? {HMR: 'false'} : {}),
|
|
266
|
+
...(envBasePath ? {MRT_ENV_BASE_PATH: envBasePath} : {})
|
|
261
267
|
}
|
|
262
268
|
})
|
|
263
269
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/pwa-kit-dev",
|
|
3
|
-
"version": "3.17.
|
|
3
|
+
"version": "3.17.1",
|
|
4
4
|
"description": "Build tools for pwa-kit",
|
|
5
5
|
"homepage": "https://github.com/SalesforceCommerceCloud/pwa-kit/tree/develop/packages/pwa-kit-dev#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@loadable/server": "^5.15.3",
|
|
59
59
|
"@loadable/webpack-plugin": "^5.15.2",
|
|
60
60
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
|
|
61
|
-
"@salesforce/pwa-kit-runtime": "3.17.
|
|
61
|
+
"@salesforce/pwa-kit-runtime": "3.17.1",
|
|
62
62
|
"@typescript-eslint/eslint-plugin": "^5.57.0",
|
|
63
63
|
"@typescript-eslint/parser": "^5.57.0",
|
|
64
64
|
"archiver": "^7.0.1",
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"@types/node": "~16.0.3",
|
|
122
122
|
"@types/node-fetch": "~2.6.3",
|
|
123
123
|
"@types/validator": "~13.7.14",
|
|
124
|
-
"internal-lib-build": "3.17.
|
|
124
|
+
"internal-lib-build": "3.17.1",
|
|
125
125
|
"nock": "^13.3.0",
|
|
126
126
|
"nodemon": "^2.0.22",
|
|
127
127
|
"superagent": "^6.1.0",
|
|
@@ -147,5 +147,5 @@
|
|
|
147
147
|
"publishConfig": {
|
|
148
148
|
"directory": "dist"
|
|
149
149
|
},
|
|
150
|
-
"gitHead": "
|
|
150
|
+
"gitHead": "d09ed57f84432913ab3e55e3073802d319c5dc3c"
|
|
151
151
|
}
|