@salesforce/pwa-kit-dev 3.0.0-preview.2 → 3.0.0-preview.3

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.
@@ -239,15 +239,6 @@ const withChunking = config => {
239
239
  },
240
240
  name: 'vendor',
241
241
  chunks: 'all'
242
- },
243
- translations: {
244
- priority: 10,
245
- test: module => {
246
- var _module$context3, _module$context3$matc;
247
- return module === null || module === void 0 ? void 0 : (_module$context3 = module.context) === null || _module$context3 === void 0 ? void 0 : (_module$context3$matc = _module$context3.match) === null || _module$context3$matc === void 0 ? void 0 : _module$context3$matc.call(_module$context3, /\/app\/translations\/compiled/);
248
- },
249
- name: 'translations',
250
- chunks: 'all'
251
242
  }
252
243
  }
253
244
  }
@@ -359,7 +350,8 @@ const renderer = _fsExtra.default.existsSync((0, _path.resolve)(projectDir, 'nod
359
350
  new _copyWebpackPlugin.default({
360
351
  patterns: [{
361
352
  from: _path.default.resolve(`${EXT_OVERRIDES_DIR ? EXT_OVERRIDES_DIR_NO_SLASH + '/' : ''}app/static`).replace(/\\/g, '/'),
362
- to: `static/`
353
+ to: `static/`,
354
+ noErrorOnMissing: true
363
355
  }]
364
356
  }),
365
357
  // Keep this on the slowest-to-build item - the server-side bundle.
@@ -367,14 +359,6 @@ const renderer = _fsExtra.default.existsSync((0, _path.resolve)(projectDir, 'nod
367
359
  title: `PWA Kit Project: ${pkg.name}`,
368
360
  excludeWarnings: true,
369
361
  skipFirstNotification: true
370
- }),
371
- // Must only appear on one config – this one is the only mandatory one.
372
- new _copyWebpackPlugin.default({
373
- patterns: [{
374
- from: _path.default.resolve(`${EXT_OVERRIDES_DIR ? EXT_OVERRIDES_DIR_NO_SLASH + '/' : ''}app/static`).replace(/\\/g, '/'),
375
- to: `static/`,
376
- noErrorOnMissing: true
377
- }]
378
362
  }), analyzeBundle && getBundleAnalyzerPlugin('server-renderer')].filter(Boolean)
379
363
  });
380
364
  }).build();
@@ -391,14 +375,7 @@ const ssr = (() => {
391
375
  filename: 'ssr.js',
392
376
  libraryTarget: 'commonjs2'
393
377
  },
394
- plugins: [...config.plugins,
395
- // This must only appear on one config – this one is the only mandatory one.
396
- new _copyWebpackPlugin.default({
397
- patterns: [{
398
- from: _path.default.resolve(`${EXT_OVERRIDES_DIR ? EXT_OVERRIDES_DIR_NO_SLASH + '/' : ''}app/static`).replace(/\\/g, '/'),
399
- to: `static/`
400
- }]
401
- }), analyzeBundle && getBundleAnalyzerPlugin(_configNames.SSR)].filter(Boolean)
378
+ plugins: [...config.plugins, analyzeBundle && getBundleAnalyzerPlugin(_configNames.SSR)].filter(Boolean)
402
379
  });
403
380
  }).build();
404
381
  } else {
@@ -61,7 +61,6 @@ class OverridesResolverPlugin {
61
61
  this.extendsHashMap.set(key.replace(overrideReplace, '').replace(/\/$/, ''), [end, rest.filter(Boolean)]);
62
62
  });
63
63
  }
64
-
65
64
  /**
66
65
  *
67
66
  * @param requestPath
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/pwa-kit-dev",
3
- "version": "3.0.0-preview.2",
3
+ "version": "3.0.0-preview.3",
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": {
@@ -57,7 +57,7 @@
57
57
  "@loadable/server": "^5.15.3",
58
58
  "@loadable/webpack-plugin": "^5.15.2",
59
59
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
60
- "@salesforce/pwa-kit-runtime": "3.0.0-preview.2",
60
+ "@salesforce/pwa-kit-runtime": "3.0.0-preview.3",
61
61
  "@typescript-eslint/eslint-plugin": "^5.57.0",
62
62
  "@typescript-eslint/parser": "^5.57.0",
63
63
  "archiver": "1.3.0",
@@ -118,7 +118,7 @@
118
118
  "@types/node-fetch": "^2.6.3",
119
119
  "@types/validator": "^13.7.14",
120
120
  "eslint-plugin-no-relative-import-paths": "^1.5.2",
121
- "internal-lib-build": "3.0.0-preview.2",
121
+ "internal-lib-build": "3.0.0-preview.3",
122
122
  "nock": "^13.3.0",
123
123
  "nodemon": "^2.0.22",
124
124
  "superagent": "^6.1.0",
@@ -147,5 +147,5 @@
147
147
  "publishConfig": {
148
148
  "directory": "dist"
149
149
  },
150
- "gitHead": "a2476c090ce48fd09e9116437aedc6cc45ae60bd"
150
+ "gitHead": "0d435ccfb378e46a536e0eb4da3c9d3364ce89ea"
151
151
  }