@workleap/webpack-configs 1.0.5 → 1.0.7
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @workleap/webpack-configs
|
|
2
2
|
|
|
3
|
+
## 1.0.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#143](https://github.com/gsoft-inc/wl-web-configs/pull/143) [`334088f`](https://github.com/gsoft-inc/wl-web-configs/commit/334088fac63aad6cc245ee3300da076e5c201287) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated to SWC 1.3.85
|
|
8
|
+
|
|
9
|
+
## 1.0.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#135](https://github.com/gsoft-inc/wl-web-configs/pull/135) [`0b36530`](https://github.com/gsoft-inc/wl-web-configs/commit/0b365307c97c4f1ef9c7ced8867a3bf103223c7a) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Release webpack-configs
|
|
14
|
+
|
|
3
15
|
## 1.0.5
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/build.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { defineBuildConfig, defineBuildHtmlWebpackPluginConfig, defineMiniCssExtractPluginConfig } from './chunk-
|
|
1
|
+
export { defineBuildConfig, defineBuildHtmlWebpackPluginConfig, defineMiniCssExtractPluginConfig } from './chunk-YV535KHL.js';
|
|
2
2
|
import './chunk-P2Z3EEVF.js';
|
|
3
3
|
import './chunk-QJI26K46.js';
|
|
@@ -10,6 +10,7 @@ import 'webpack-dev-server';
|
|
|
10
10
|
|
|
11
11
|
var DefinePlugin = webpack.DefinePlugin;
|
|
12
12
|
var require2 = createRequire(import.meta.url);
|
|
13
|
+
var __filename = fileURLToPath(import.meta.url);
|
|
13
14
|
function defineDevHtmlWebpackPluginConfig(options = {}) {
|
|
14
15
|
const {
|
|
15
16
|
template = path.resolve("./public/index.html"),
|
|
@@ -76,11 +77,13 @@ function defineDevConfig(swcConfig, options = {}) {
|
|
|
76
77
|
type: "filesystem",
|
|
77
78
|
allowCollectingMemory: true,
|
|
78
79
|
maxMemoryGenerations: 1,
|
|
80
|
+
cacheDirectory,
|
|
81
|
+
// Took from https://webpack.js.org/configuration/cache/#cachebuilddependencies.
|
|
79
82
|
buildDependencies: {
|
|
80
|
-
config: [
|
|
81
|
-
}
|
|
82
|
-
cacheDirectory
|
|
83
|
+
config: [__filename]
|
|
84
|
+
}
|
|
83
85
|
},
|
|
86
|
+
// (ACTUALLY NOT FIXING ANYTHING AT THE MOMENT)
|
|
84
87
|
// Fixes caching for environmental variables using the DefinePlugin by forcing
|
|
85
88
|
// webpack caching to prioritize hashes over timestamps.
|
|
86
89
|
snapshot: cache ? {
|
|
@@ -10,6 +10,7 @@ import webpack from 'webpack';
|
|
|
10
10
|
|
|
11
11
|
var DefinePlugin = webpack.DefinePlugin;
|
|
12
12
|
var require2 = createRequire(import.meta.url);
|
|
13
|
+
var __filename = fileURLToPath(import.meta.url);
|
|
13
14
|
function defineBuildHtmlWebpackPluginConfig(options = {}) {
|
|
14
15
|
const {
|
|
15
16
|
template = path.resolve("./public/index.html"),
|
|
@@ -71,11 +72,14 @@ function defineBuildConfig(swcConfig, options = {}) {
|
|
|
71
72
|
cache: cache && {
|
|
72
73
|
type: "filesystem",
|
|
73
74
|
allowCollectingMemory: false,
|
|
75
|
+
cacheDirectory,
|
|
76
|
+
maxMemoryGenerations: 1,
|
|
77
|
+
// Took from https://webpack.js.org/configuration/cache/#cachebuilddependencies.
|
|
74
78
|
buildDependencies: {
|
|
75
|
-
config: [
|
|
76
|
-
}
|
|
77
|
-
cacheDirectory
|
|
79
|
+
config: [__filename]
|
|
80
|
+
}
|
|
78
81
|
},
|
|
82
|
+
// (ACTUALLY NOT FIXING ANYTHING AT THE MOMENT)
|
|
79
83
|
// Fixes caching for environmental variables using the DefinePlugin by forcing
|
|
80
84
|
// webpack caching to prioritize hashes over timestamps.
|
|
81
85
|
snapshot: cache ? {
|
package/dist/dev.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { defineDevConfig, defineDevHtmlWebpackPluginConfig, defineFastRefreshPluginConfig } from './chunk-
|
|
1
|
+
export { defineDevConfig, defineDevHtmlWebpackPluginConfig, defineFastRefreshPluginConfig } from './chunk-NFWTRG4S.js';
|
|
2
2
|
import './chunk-P2Z3EEVF.js';
|
|
3
3
|
import './chunk-QJI26K46.js';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { defineBuildConfig, defineBuildHtmlWebpackPluginConfig, defineMiniCssExtractPluginConfig } from './chunk-
|
|
2
|
-
export { defineDevConfig, defineDevHtmlWebpackPluginConfig, defineFastRefreshPluginConfig } from './chunk-
|
|
1
|
+
export { defineBuildConfig, defineBuildHtmlWebpackPluginConfig, defineMiniCssExtractPluginConfig } from './chunk-YV535KHL.js';
|
|
2
|
+
export { defineDevConfig, defineDevHtmlWebpackPluginConfig, defineFastRefreshPluginConfig } from './chunk-NFWTRG4S.js';
|
|
3
3
|
import './chunk-P2Z3EEVF.js';
|
|
4
4
|
import './chunk-QJI26K46.js';
|
|
5
5
|
export { addAfterModuleRule, addBeforeModuleRule, findModuleRule, findModuleRules, matchAssetModuleType, matchLoaderName, matchTest, removeModuleRules, replaceModuleRule } from './chunk-34O5ZLZ6.js';
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@workleap/webpack-configs",
|
|
3
3
|
"author": "Workleap",
|
|
4
4
|
"description": "Workleap recommended webpack config.",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.7",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"workleap",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.11",
|
|
32
|
+
"@svgr/webpack": "8.1.0",
|
|
32
33
|
"css-loader": "6.8.1",
|
|
33
34
|
"html-webpack-plugin": "5.5.3",
|
|
34
35
|
"mini-css-extract-plugin": "2.7.6",
|
|
@@ -38,13 +39,12 @@
|
|
|
38
39
|
"terser-webpack-plugin": "5.3.9"
|
|
39
40
|
},
|
|
40
41
|
"peerDependencies": {
|
|
41
|
-
"@svgr/webpack": "*",
|
|
42
42
|
"@swc/core": "*",
|
|
43
43
|
"@swc/helpers": "*",
|
|
44
44
|
"browserslist": "*",
|
|
45
45
|
"postcss": "*",
|
|
46
|
-
"webpack": "
|
|
47
|
-
"webpack-dev-server": "
|
|
46
|
+
"webpack": ">=5.0.0",
|
|
47
|
+
"webpack-dev-server": ">=4.0.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependenciesMeta": {
|
|
50
50
|
"webpack-dev-server": {
|
|
@@ -52,14 +52,13 @@
|
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@
|
|
56
|
-
"@swc/
|
|
57
|
-
"@swc/helpers": "0.5.1",
|
|
55
|
+
"@swc/core": "1.3.85",
|
|
56
|
+
"@swc/helpers": "0.5.2",
|
|
58
57
|
"@swc/jest": "0.2.29",
|
|
59
|
-
"@types/jest": "29.5.
|
|
60
|
-
"@types/node": "20.
|
|
58
|
+
"@types/jest": "29.5.5",
|
|
59
|
+
"@types/node": "20.6.2",
|
|
61
60
|
"browserslist": "4.21.10",
|
|
62
|
-
"jest": "29.
|
|
61
|
+
"jest": "29.7.0",
|
|
63
62
|
"postcss": "8.4.29",
|
|
64
63
|
"postcss-load-config": "4.0.1",
|
|
65
64
|
"ts-node": "10.9.1",
|
|
@@ -67,9 +66,9 @@
|
|
|
67
66
|
"typescript": "5.2.2",
|
|
68
67
|
"webpack": "5.88.2",
|
|
69
68
|
"webpack-dev-server": "4.15.1",
|
|
70
|
-
"@workleap/eslint-plugin": "2.1.
|
|
71
|
-
"@workleap/swc-configs": "2.1.
|
|
72
|
-
"@workleap/tsup-configs": "3.0.
|
|
69
|
+
"@workleap/eslint-plugin": "2.1.1",
|
|
70
|
+
"@workleap/swc-configs": "2.1.2",
|
|
71
|
+
"@workleap/tsup-configs": "3.0.1",
|
|
73
72
|
"@workleap/typescript-configs": "3.0.2"
|
|
74
73
|
},
|
|
75
74
|
"publishConfig": {
|