@studyportals/webpack-helper 6.0.7-22 → 6.0.7-23

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": "@studyportals/webpack-helper",
3
- "version": "6.0.7-22",
3
+ "version": "6.0.7-23",
4
4
  "description": "A collection of standard configurations and helpers for webpack.",
5
5
  "main": "src/main.js",
6
6
  "scripts": {
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const retry_chunk_load_plugin_1 = require("../plugins/retry-chunk-load.plugin");
3
+ const path = require('path');
4
+ const process = require('process');
5
+ const { RetryChunkLoadPlugin } = require(path.join(process.cwd(), 'src', 'plugins', 'retry-chunk-load.plugin.js'));
4
6
  class ChunksRetryPluginFactory {
5
7
  static IsPresetSupported(preset) {
6
8
  if (!preset.retryChunksConfig)
@@ -15,7 +17,7 @@ class ChunksRetryPluginFactory {
15
17
  }
16
18
  static CustomRetryChunksPlugin(preset) {
17
19
  const { retryChunksConfig } = preset;
18
- return new retry_chunk_load_plugin_1.RetryChunkLoadPlugin({
20
+ return new RetryChunkLoadPlugin({
19
21
  cacheBust: `function() {
20
22
  return Date.now();
21
23
  }`,