@salesforce/pwa-kit-dev 3.1.0 → 3.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/pwa-kit-dev",
3
- "version": "3.1.0",
3
+ "version": "3.1.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.1.0",
61
+ "@salesforce/pwa-kit-runtime": "3.1.1",
62
62
  "@typescript-eslint/eslint-plugin": "^5.57.0",
63
63
  "@typescript-eslint/parser": "^5.57.0",
64
64
  "archiver": "1.3.0",
@@ -119,7 +119,7 @@
119
119
  "@types/node-fetch": "^2.6.3",
120
120
  "@types/validator": "^13.7.14",
121
121
  "eslint-plugin-no-relative-import-paths": "^1.5.2",
122
- "internal-lib-build": "3.1.0",
122
+ "internal-lib-build": "3.1.1",
123
123
  "nock": "^13.3.0",
124
124
  "nodemon": "^2.0.22",
125
125
  "superagent": "^6.1.0",
@@ -148,5 +148,5 @@
148
148
  "publishConfig": {
149
149
  "directory": "dist"
150
150
  },
151
- "gitHead": "9903df6beef25919921962f4fa950f91352adee2"
151
+ "gitHead": "0194d62014788b280549e70e6e80da279227b500"
152
152
  }
@@ -360,7 +360,12 @@ const DevServerMixin = {
360
360
  _getWebpackAsset(req, compilerName, fileName) {
361
361
  if (req.app.__webpackReady()) {
362
362
  const outputFileSystem = req.app.__devMiddleware.context.outputFileSystem;
363
- const jsonWebpackStats = req.app.__devMiddleware.context.stats.toJson();
363
+ // Projects may have a large amount of stats data to process that can lead to performance issues
364
+ // we pass in options that help prevent that - preset: 'none' processes no data (TODO: make configurable)
365
+ const jsonWebpackStats = req.app.__devMiddleware.context.stats.toJson({
366
+ preset: 'none',
367
+ outputPath: true
368
+ });
364
369
  try {
365
370
  const rp = jsonWebpackStats.children.find(child => child.name === compilerName);
366
371
  const assetPath = _path.default.join(rp.outputPath, fileName);