@studyportals/webpack-helper 6.0.7-20 → 6.0.7-21

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-20",
3
+ "version": "6.0.7-21",
4
4
  "description": "A collection of standard configurations and helpers for webpack.",
5
5
  "main": "src/main.js",
6
6
  "scripts": {
@@ -32,6 +32,7 @@
32
32
  "fork-ts-checker-webpack-plugin": "^9.0.2",
33
33
  "mini-css-extract-plugin": "^2.8.0",
34
34
  "path": "^0.12.7",
35
+ "prettier": "^3.4.2",
35
36
  "sass": "^1.71.1",
36
37
  "sass-loader": "^14.1.1",
37
38
  "terser-webpack-plugin": "^5.3.10",
@@ -1,6 +1,40 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
2
35
  Object.defineProperty(exports, "__esModule", { value: true });
3
36
  exports.RetryChunkLoadPlugin = void 0;
37
+ const prettier = __importStar(require("prettier"));
4
38
  const webpack_1 = require("webpack");
5
39
  const pluginName = 'RetryChunkLoadPlugin';
6
40
  class RetryChunkLoadPlugin {
@@ -65,7 +99,14 @@ class RetryChunkLoadPlugin {
65
99
  });
66
100
  };
67
101
  }`);
68
- return `${source}\n${script}`;
102
+ return (source +
103
+ prettier.format(script, {
104
+ singleQuote: true,
105
+ parser: 'babel',
106
+ bracketSpacing: true,
107
+ trailingComma: 'all',
108
+ arrowParens: 'avoid',
109
+ }));
69
110
  });
70
111
  });
71
112
  }