@salesforce/pwa-kit-dev 3.0.0 → 3.1.0-preview.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.
Files changed (2) hide show
  1. package/bin/pwa-kit-dev.js +10 -1
  2. package/package.json +5 -4
@@ -202,7 +202,16 @@ const main = async () => {
202
202
  )
203
203
  .addOption(new program.Option('--noHMR', 'disable the client-side hot module replacement'))
204
204
  .action(async ({inspect, noHMR}) => {
205
- execSync(`node${inspect ? ' --inspect' : ''} ${resolvedSSRPath}`, {
205
+ // We use @babel/node instead of node because we want to support ES6 import syntax
206
+ const babelNode = p.join(
207
+ require.resolve('webpack'),
208
+ '..',
209
+ '..',
210
+ '..',
211
+ '.bin',
212
+ 'babel-node'
213
+ )
214
+ execSync(`${babelNode} ${inspect ? '--inspect' : ''} ${resolvedSSRPath}`, {
206
215
  env: {
207
216
  ...process.env,
208
217
  ...(noHMR ? {HMR: 'false'} : {})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/pwa-kit-dev",
3
- "version": "3.0.0",
3
+ "version": "3.1.0-preview.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": {
@@ -39,6 +39,7 @@
39
39
  "@babel/cli": "^7.21.0",
40
40
  "@babel/core": "^7.21.3",
41
41
  "@babel/eslint-parser": "^7.21.3",
42
+ "@babel/node": "^7.22.5",
42
43
  "@babel/parser": "^7.21.3",
43
44
  "@babel/plugin-proposal-object-rest-spread": "^7.20.7",
44
45
  "@babel/plugin-proposal-optional-chaining": "^7.21.0",
@@ -57,7 +58,7 @@
57
58
  "@loadable/server": "^5.15.3",
58
59
  "@loadable/webpack-plugin": "^5.15.2",
59
60
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
60
- "@salesforce/pwa-kit-runtime": "3.0.0",
61
+ "@salesforce/pwa-kit-runtime": "3.1.0-preview.0",
61
62
  "@typescript-eslint/eslint-plugin": "^5.57.0",
62
63
  "@typescript-eslint/parser": "^5.57.0",
63
64
  "archiver": "1.3.0",
@@ -118,7 +119,7 @@
118
119
  "@types/node-fetch": "^2.6.3",
119
120
  "@types/validator": "^13.7.14",
120
121
  "eslint-plugin-no-relative-import-paths": "^1.5.2",
121
- "internal-lib-build": "3.0.0",
122
+ "internal-lib-build": "3.1.0-preview.0",
122
123
  "nock": "^13.3.0",
123
124
  "nodemon": "^2.0.22",
124
125
  "superagent": "^6.1.0",
@@ -147,5 +148,5 @@
147
148
  "publishConfig": {
148
149
  "directory": "dist"
149
150
  },
150
- "gitHead": "d48df913cc9b8b3a30c56593caea31c9f33f361c"
151
+ "gitHead": "c49c3738908cbcc24b40f2f160661439b84d47d5"
151
152
  }