@studyportals/webpack-helper 3.2.5-beta.0 → 3.2.6-beta.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/README.md +16 -0
  2. package/package.json +13 -6
package/README.md CHANGED
@@ -143,6 +143,22 @@ entry: {
143
143
  }
144
144
  ```
145
145
 
146
+ ### Working with packaged components & libraries
147
+
148
+ When working with packaged components and libraries it is required to keep the bundle name in line with the major version of the package. This helps to prevent reference issues when multiple versions of a package load on a single page.
149
+
150
+ ```javascript
151
+ // version 1
152
+ entry: {
153
+ multiselect_v1: "./src/main.ts"
154
+ }
155
+
156
+ // version 2
157
+ entry: {
158
+ multiselect_v2: "./src/main.ts"
159
+ }
160
+ ```
161
+
146
162
  ### output **(required)**
147
163
 
148
164
  The output object has some options that define how your bundle will be output. It has the following properties:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studyportals/webpack-helper",
3
- "version": "3.2.5-beta.0",
3
+ "version": "3.2.6-beta.0",
4
4
  "description": "A collection of standard configurations and helpers for webpack.",
5
5
  "main": "src/main.js",
6
6
  "scripts": {
@@ -25,22 +25,32 @@
25
25
  "@babel/plugin-transform-modules-commonjs": "^7.5.0",
26
26
  "@babel/plugin-transform-runtime": "^7.5.5",
27
27
  "@babel/plugin-transform-typescript": "^7.5.5",
28
- "@babel/preset-env": "^7.18.10",
28
+ "@babel/preset-env": "^7.5.5",
29
29
  "@babel/preset-typescript": "^7.3.3",
30
30
  "@babel/runtime": "^7.5.5",
31
31
  "@studyportals/bob-manifest-generator": "^3.0.0",
32
32
  "@studyportals/browserslist-config": "^1.2.0",
33
33
  "@studyportals/dll-availability-tracker": "^2.0.0",
34
34
  "@studyportals/vue-config": "^4.1.2",
35
+ "@types/jest": "^27.0.0",
36
+ "@vue/cli-plugin-babel": "^5.0.4",
37
+ "@vue/cli-plugin-unit-jest": "^5.0.4",
38
+ "@vue/test-utils": "^2.0.2",
39
+ "@vue/vue3-jest": "^27.0.0",
40
+ "babel-jest": "^27.5.1",
35
41
  "babel-loader": "^8.2.3",
36
42
  "css-loader": "^6.5.1",
37
43
  "file-loader": "^6.2.0",
38
44
  "mini-css-extract-plugin": "^2.5.3",
39
45
  "css-minimizer-webpack-plugin": "^4.0.0",
46
+ "jest": "^27.0.0",
47
+ "jest-junit": "^13.0.0",
48
+ "jest-serializer-vue": "^2.0.2",
40
49
  "path": "^0.12.7",
41
50
  "sass": "^1.49.7",
42
51
  "sass-loader": "^12.4.0",
43
52
  "terser-webpack-plugin": "^5.3.1",
53
+ "ts-jest": "^27.0.0",
44
54
  "ts-loader": "^9.2.6",
45
55
  "typescript": "^4.7.4",
46
56
  "vue-loader": "^16.2.0",
@@ -50,9 +60,6 @@
50
60
  },
51
61
  "devDependencies": {
52
62
  "@types/jest": "^27.4.0",
53
- "@types/node": "^17.0.14",
54
- "babel-jest": "^28.1.1",
55
- "jest": "^28.1.1",
56
- "ts-jest": "^28.0.5"
63
+ "@types/node": "^17.0.14"
57
64
  }
58
65
  }