@salesforce/pwa-kit-dev 3.3.0-preview.0 → 3.3.0
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
CHANGED
|
@@ -231,7 +231,13 @@ const main = async () => {
|
|
|
231
231
|
new program.Option('--inspect', 'enable debugging with --inspect on the node process')
|
|
232
232
|
)
|
|
233
233
|
.addOption(new program.Option('--noHMR', 'disable the client-side hot module replacement'))
|
|
234
|
-
.
|
|
234
|
+
.addOption(
|
|
235
|
+
new program.Option(
|
|
236
|
+
'--babelArgs <babel-args>',
|
|
237
|
+
'args to pass through to babel-node'
|
|
238
|
+
).default('--extensions ".js,.jsx,.ts,.tsx"')
|
|
239
|
+
)
|
|
240
|
+
.action(async ({inspect, noHMR, babelArgs}) => {
|
|
235
241
|
// We use @babel/node instead of node because we want to support ES6 import syntax
|
|
236
242
|
const babelNode = p.join(
|
|
237
243
|
require.resolve('webpack'),
|
|
@@ -248,7 +254,7 @@ const main = async () => {
|
|
|
248
254
|
process.exit(1)
|
|
249
255
|
}
|
|
250
256
|
|
|
251
|
-
execSync(`${babelNode} ${inspect ? '--inspect' : ''} ${entrypoint}`, {
|
|
257
|
+
execSync(`${babelNode} ${inspect ? '--inspect' : ''} ${babelArgs} ${entrypoint}`, {
|
|
252
258
|
env: {
|
|
253
259
|
...process.env,
|
|
254
260
|
...(noHMR ? {HMR: 'false'} : {})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/pwa-kit-dev",
|
|
3
|
-
"version": "3.3.0
|
|
3
|
+
"version": "3.3.0",
|
|
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.3.0
|
|
61
|
+
"@salesforce/pwa-kit-runtime": "3.3.0",
|
|
62
62
|
"@typescript-eslint/eslint-plugin": "^5.57.0",
|
|
63
63
|
"@typescript-eslint/parser": "^5.57.0",
|
|
64
64
|
"archiver": "1.3.0",
|
|
@@ -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.3.0
|
|
124
|
+
"internal-lib-build": "3.3.0",
|
|
125
125
|
"nock": "^13.3.0",
|
|
126
126
|
"nodemon": "^2.0.22",
|
|
127
127
|
"superagent": "^6.1.0",
|
|
@@ -142,10 +142,10 @@
|
|
|
142
142
|
},
|
|
143
143
|
"engines": {
|
|
144
144
|
"node": "^16.11.0 || ^18.0.0",
|
|
145
|
-
"npm": "^8.0.0 || ^9.0.0"
|
|
145
|
+
"npm": "^8.0.0 || ^9.0.0 || ^10.0.0"
|
|
146
146
|
},
|
|
147
147
|
"publishConfig": {
|
|
148
148
|
"directory": "dist"
|
|
149
149
|
},
|
|
150
|
-
"gitHead": "
|
|
150
|
+
"gitHead": "93894bb7d823f3510e10affdb1eb8e6750b25822"
|
|
151
151
|
}
|