@merkur/tool-webpack 0.32.0 → 0.33.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.
- package/CHANGELOG.md +8 -0
- package/module/babelLoader.cjs +10 -10
- package/module/styleLoader.cjs +2 -2
- package/package.json +2 -2
- package/webpack/cache.cjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.33.0](https://github.com/mjancarik/merkur/compare/v0.32.1...v0.33.0) (2023-08-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @merkur/tool-webpack
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [0.32.0](https://github.com/mjancarik/merkur/compare/v0.31.1...v0.32.0) (2023-07-14)
|
|
7
15
|
|
|
8
16
|
### Features
|
package/module/babelLoader.cjs
CHANGED
|
@@ -32,7 +32,7 @@ function findLoaders(rules = [], loader) {
|
|
|
32
32
|
function createESTransformation(
|
|
33
33
|
config,
|
|
34
34
|
{ cwd, isProduction, nodeModulesDir, environment, cache },
|
|
35
|
-
esVersion
|
|
35
|
+
esVersion,
|
|
36
36
|
) {
|
|
37
37
|
const esPolyfillFilePath = `./src/polyfill.${esVersion}.js`;
|
|
38
38
|
|
|
@@ -50,31 +50,31 @@ function createESTransformation(
|
|
|
50
50
|
alias: {
|
|
51
51
|
'@merkur/core': path.join(
|
|
52
52
|
nodeModulesDir,
|
|
53
|
-
`@merkur/core/lib/index.${esVersion}.mjs
|
|
53
|
+
`@merkur/core/lib/index.${esVersion}.mjs`,
|
|
54
54
|
),
|
|
55
55
|
'@merkur/plugin-component': path.join(
|
|
56
56
|
nodeModulesDir,
|
|
57
|
-
`@merkur/plugin-component/lib/index.mjs
|
|
57
|
+
`@merkur/plugin-component/lib/index.mjs`,
|
|
58
58
|
),
|
|
59
59
|
'@merkur/plugin-event-emitter': path.join(
|
|
60
60
|
nodeModulesDir,
|
|
61
|
-
`@merkur/plugin-event-emitter/lib/index.mjs
|
|
61
|
+
`@merkur/plugin-event-emitter/lib/index.mjs`,
|
|
62
62
|
),
|
|
63
63
|
'@merkur/plugin-http-client': path.join(
|
|
64
64
|
nodeModulesDir,
|
|
65
|
-
`@merkur/plugin-http-client/lib/index.mjs
|
|
65
|
+
`@merkur/plugin-http-client/lib/index.mjs`,
|
|
66
66
|
),
|
|
67
67
|
'@merkur/plugin-error': path.join(
|
|
68
68
|
nodeModulesDir,
|
|
69
|
-
`@merkur/plugin-error/lib/index.mjs
|
|
69
|
+
`@merkur/plugin-error/lib/index.mjs`,
|
|
70
70
|
),
|
|
71
71
|
'@merkur/plugin-router': path.join(
|
|
72
72
|
nodeModulesDir,
|
|
73
|
-
`@merkur/plugin-router/lib/index.mjs
|
|
73
|
+
`@merkur/plugin-router/lib/index.mjs`,
|
|
74
74
|
),
|
|
75
75
|
'@merkur/plugin-css-scrambler': path.join(
|
|
76
76
|
nodeModulesDir,
|
|
77
|
-
`@merkur/plugin-router/lib/index.mjs
|
|
77
|
+
`@merkur/plugin-router/lib/index.mjs`,
|
|
78
78
|
),
|
|
79
79
|
...config.resolve.alias,
|
|
80
80
|
},
|
|
@@ -87,7 +87,7 @@ function createESTransformation(
|
|
|
87
87
|
|
|
88
88
|
const { loaders: babelLoaders } = findLoaders(
|
|
89
89
|
config.module.rules,
|
|
90
|
-
'babel-loader'
|
|
90
|
+
'babel-loader',
|
|
91
91
|
);
|
|
92
92
|
|
|
93
93
|
const babelPresetEnv = [
|
|
@@ -119,7 +119,7 @@ function createESTransformation(
|
|
|
119
119
|
cacheIdentifier: createCacheKey(
|
|
120
120
|
environment,
|
|
121
121
|
config?.name,
|
|
122
|
-
...(cache?.versionDependencies ?? [])
|
|
122
|
+
...(cache?.versionDependencies ?? []),
|
|
123
123
|
),
|
|
124
124
|
cacheDirectory: true,
|
|
125
125
|
cacheCompression: false,
|
package/module/styleLoader.cjs
CHANGED
|
@@ -76,7 +76,7 @@ function applyStyleLoaders(config, context) {
|
|
|
76
76
|
exclude: /node_modules/,
|
|
77
77
|
use: getStyleLoaders(context),
|
|
78
78
|
},
|
|
79
|
-
].filter(Boolean)
|
|
79
|
+
].filter(Boolean),
|
|
80
80
|
);
|
|
81
81
|
|
|
82
82
|
config.optimization = {
|
|
@@ -88,7 +88,7 @@ function applyStyleLoaders(config, context) {
|
|
|
88
88
|
new MiniCssExtractPlugin({
|
|
89
89
|
filename: 'widget.[contenthash].css',
|
|
90
90
|
...plugins.MiniCssExtractPlugin,
|
|
91
|
-
})
|
|
91
|
+
}),
|
|
92
92
|
);
|
|
93
93
|
|
|
94
94
|
return config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@merkur/tool-webpack",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
4
4
|
"description": "Merkur tool webpack.",
|
|
5
5
|
"main": "index.cjs",
|
|
6
6
|
"scripts": {
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@merkur/tools": "*"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "3e88b57abfad267ac3f3b20b2ae6bf50f93f5375"
|
|
60
60
|
}
|